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

[eluser]Ian Cook[/eluser]
Oooookay, I've got a little more concrete information now.

So it appears that when the session ID regeneration occurs, the userdata that is stored in the database table is dumped into the cookie. If this userdata is greater than 4k, the cookie no longer works ( as expected, cookies cant handle that much data ).

I tested this by doing the following...

First I changed the session id regen time to 20 seconds, for faster testing.

Then I set an additional cookie that just contained the session id. On each page load I'd compare that session id to the real session id to determine if it had changed.

If it has changed, its either because the sessiond id has been regenerated or the session has been lost entirely. So I check if my "is auth'd" variable is still present. If so, then I'll update the session id cookie copy with the new one and continue on.

If the "is auth'd" variable is not set, and the session id copy does not match the real curent session id, the session has been lost.

I filled the session userdata up with a ton of junk data. If the userdata totals less than ~4k when the session regen occurs, the session remains intact. If the userdata totals more than ~4k, the session dies after the regen occurs.

So, in summary, the session library seems to be putting a copy of all the userdata into the cookie when it regenerates the session id.

This is a bug, right?


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