Welcome Guest, Not a member yet? Register   Sign In
Session Failures
#27

[eluser]WanWizard[/eluser]
By default, every time you use $this->session->userdata(), the Session library does an automatic write, which creates a cookie.
So in itself it's not uncommon to have multiple entries for the same cookie (altough I don't like it, and I've changed that in my Session library).

What still points me in the direction of multiple requests is your last request.

Imagine you request a page, and in this page there's an image that doesn't exist, and causes a rewrite to index.php:
- browser requests the page, sends cookie with id C
- this request triggers an id rotation, C gets changed to D
- browser requests the page assets, one gets rewritten to index.php
- session C can't be found (because by now it's D), a new E is created
- browser now has a cookie with id E, D is overwritten by this new cookie.

So you really need to figure out where this second request is coming from. Check your webserver logs to see what exactly is requested. Alternatively, add a log_message('debug', $_SERVER['PHP_SELF']); to system/codeigniter/codeigniter.php, around line 162.


Messages In This Thread
Session Failures - by El Forum - 09-12-2008, 06:46 PM
Session Failures - by El Forum - 09-13-2008, 04:51 AM
Session Failures - by El Forum - 09-13-2008, 05:08 AM
Session Failures - by El Forum - 09-13-2008, 07:47 PM
Session Failures - by El Forum - 09-15-2008, 04:24 PM
Session Failures - by El Forum - 09-15-2008, 07:15 PM
Session Failures - by El Forum - 09-19-2008, 03:18 PM
Session Failures - by El Forum - 09-19-2008, 04:18 PM
Session Failures - by El Forum - 09-21-2008, 12:26 PM
Session Failures - by El Forum - 09-22-2008, 04:22 PM
Session Failures - by El Forum - 09-23-2008, 08:15 AM
Session Failures - by El Forum - 09-23-2008, 01:07 PM
Session Failures - by El Forum - 09-23-2008, 04:01 PM
Session Failures - by El Forum - 11-05-2010, 02:40 AM
Session Failures - by El Forum - 11-05-2010, 02:35 PM
Session Failures - by El Forum - 11-06-2010, 01:40 AM
Session Failures - by El Forum - 11-06-2010, 03:23 AM
Session Failures - by El Forum - 11-06-2010, 03:26 AM
Session Failures - by El Forum - 11-06-2010, 03:34 AM
Session Failures - by El Forum - 11-06-2010, 04:00 AM
Session Failures - by El Forum - 11-06-2010, 04:26 AM
Session Failures - by El Forum - 11-06-2010, 05:55 AM
Session Failures - by El Forum - 11-07-2010, 03:48 AM
Session Failures - by El Forum - 11-07-2010, 03:55 AM
Session Failures - by El Forum - 11-07-2010, 05:24 AM
Session Failures - by El Forum - 11-07-2010, 07:41 AM
Session Failures - by El Forum - 11-07-2010, 08:21 AM
Session Failures - by El Forum - 11-08-2010, 03:31 AM
Session Failures - by El Forum - 04-11-2012, 05:03 PM
Session Failures - by El Forum - 04-11-2012, 06:00 PM
Session Failures - by El Forum - 07-16-2012, 07:43 PM
Session Failures - by El Forum - 07-16-2012, 11:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB