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

Not sure what's going on. I set the regenerate time to 60 seconds and stepped through the regenerate process (and the writes and reads that followed) several times using XDebug and it worked fine. As soon as I let it run on its own, not stepping through it, it clears the session data again. The only thing that I can think of at this point is that my stepping through it was keeping a session "alive" longer so things worked, or something like that. I did notice one of the times that I was following through that PHPStorm showed the session id changed, but nothing was updated in the database during that. IIRC, that was during the next read, but I'm unsure.

I don't have time to go down this rabbit hole any further at the moment, since I'm already tight on the deadline for this sprint, so will have to think of a different way. Wait - I might not be able to since we have to allow non-logged in users to have items in their cart. Hmm...
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 kilishan - 02-09-2016, 09:21 AM
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