Welcome Guest, Not a member yet? Register   Sign In
Database Sessions losing Userdata?
#2

There's only one way for this to happen - if you've got ajax calls changing the session data (in this case your cart contents), it's possible that one such call is queued to execute after the request that triggers ID regeneration. Thus, the new session data is only written to the old session.

That or a PHP bug, as CI has no control over the regeneration mechanics; it just calls session_regenerate_id().
Reply


Messages In This Thread
Database Sessions losing Userdata? - by kilishan - 02-08-2016, 12:58 PM
RE: Database Sessions losing Userdata? - by Narf - 02-08-2016, 01:17 PM
RE: Database Sessions losing Userdata? - by Narf - 02-09-2016, 12:36 PM
RE: Database Sessions losing Userdata? - by Narf - 02-09-2016, 02:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB