Welcome Guest, Not a member yet? Register   Sign In
[Solved] Various Session problems
#9

[eluser]fchristant[/eluser]
A little update on my progress:

- I have moved the js files outside of my CI project. This alone got rid of a lot of session entries in the table

- There were still some mysterious duplicates appearing, seemingly random. It turns out my cron jobs (which use CI because they need the models) were causing this. I have now disabled the autoloading of the session class. All normal controllers extend my basecontroller which loads the session class, whilst my "services" controller, which is used for the cronjobs, extends the native Controller which does not load the session.

Although I am still testing, it looks like these two changes got rid of all duplicates, which is great. I have not yet applied the IS_AJAX trick. In my testing, my ajax calls do not seem to create duplicates. Maybe because they are user-invoked after the page is loaded?

I have not yet deployed this code to production because I have made other changes that I need to finish first, but I hope this solves the IP problem as well. Now that I think of it, I think it will, because I am figuring that it was the cronjob "sessions" which had an ip of 0.0.0.0, which makes sense, since they run on the same host.

All in all it looks like I succeeded in eradicating most if not all problems with your help. Thanks!


Messages In This Thread
[Solved] Various Session problems - by El Forum - 08-19-2010, 10:46 AM
[Solved] Various Session problems - by El Forum - 08-19-2010, 11:48 AM
[Solved] Various Session problems - by El Forum - 08-19-2010, 12:02 PM
[Solved] Various Session problems - by El Forum - 08-19-2010, 12:03 PM
[Solved] Various Session problems - by El Forum - 08-19-2010, 01:01 PM
[Solved] Various Session problems - by El Forum - 08-19-2010, 01:12 PM
[Solved] Various Session problems - by El Forum - 08-19-2010, 01:14 PM
[Solved] Various Session problems - by El Forum - 08-19-2010, 01:57 PM
[Solved] Various Session problems - by El Forum - 08-20-2010, 04:58 AM
[Solved] Various Session problems - by El Forum - 08-20-2010, 05:25 AM
[Solved] Various Session problems - by El Forum - 08-20-2010, 06:19 AM
[Solved] Various Session problems - by El Forum - 08-20-2010, 06:50 AM
[Solved] Various Session problems - by El Forum - 08-20-2010, 06:56 AM
[Solved] Various Session problems - by El Forum - 08-20-2010, 10:03 AM
[Solved] Various Session problems - by El Forum - 08-20-2010, 10:16 AM
[Solved] Various Session problems - by El Forum - 08-20-2010, 10:31 AM
[Solved] Various Session problems - by El Forum - 08-20-2010, 12:13 PM
[Solved] Various Session problems - by El Forum - 08-20-2010, 12:53 PM
[Solved] Various Session problems - by El Forum - 08-20-2010, 08:13 PM
[Solved] Various Session problems - by El Forum - 08-21-2010, 01:51 AM
[Solved] Various Session problems - by El Forum - 09-01-2010, 08:50 AM
[Solved] Various Session problems - by El Forum - 09-22-2010, 05:21 PM
[Solved] Various Session problems - by El Forum - 09-22-2010, 08:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB