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

[eluser]fchristant[/eluser]
1. Yes, it is using Ajax calls, although the problem also appears on pages free of any Ajax calls. An interesting example is as follow...

javascript files in my project are not outside my CI project. I treat them as view to which I pass data. Odd, I know, but I have good reasons for this. Anyway, in my HTML header I of course load these js files. Let's say there are 3. Combined with the actual page itself, those are 4 requests coming into CI, all of the same IP and user agent. Guess what? I creates 4 sessions in the database.

In other words, Ajax is not the cause. Paralel requests seem to be the cause. The solution you indicate is therefore a solution for only a very specific case.

2. Thanks, I removed the underscore. It will not solve #1, but maybe it improves something else Smile

3. No issues as long as #1 is solved. Currently, an idnex job by Google creates x sessions times x pages, which means hundreds of new session entries in my db.

4. Hard to say, it is hosted at a leased server of which the lease plan is owned by an ex-coworker. I currently do not have the details of his setup. What is interesting though that I can capture the IP of a user in my custom CI code just fine using $this->input->ip_address();

Thanks for your time. It seems the root of most of my problems lies in #1. Other than switching to another session library completely, I have not found a solution yet. I would like to stay on CI's library as I do like the concept and I don't look forward to changing code much.


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