Welcome Guest, Not a member yet? Register   Sign In
multiple session cookies with session library
#8

[eluser]WanWizard[/eluser]
Just looked into the latest code, at some point they seem to have the rotation issue fixed (it now rotates in the constructor).

set_userdata() calls sess_write(), so every update of the session adds a new cookie to the list. What also can happen (but I haven't tested it), there's a maximum length of about 4Kb voor a line in the HTTP header. If you have a lot of duplicate cookies, this line can get very long. Perhaps that's the cause of the session being dropped? This problem can get worse if you store session data in the cookie...

I'm currently struggling with a PyroCMS install which suffers badly from this issue, and no Ajax in sight. I sometimes login, open a forum message, click on reply, and when I submit, the session is already gone. Drives me nuts... Sad

p.s. just checked, every 'pyrocms' cookie adds over 600 bytes to the Set-Cookie header. More then 6 and it's over. This could be a possible cause, I'll see if I can reproduce the session loss by setting lots of cookies.


Messages In This Thread
multiple session cookies with session library - by El Forum - 10-15-2012, 03:16 AM
multiple session cookies with session library - by El Forum - 10-15-2012, 10:59 AM
multiple session cookies with session library - by El Forum - 10-15-2012, 11:37 AM
multiple session cookies with session library - by El Forum - 10-15-2012, 11:47 AM
multiple session cookies with session library - by El Forum - 10-15-2012, 12:34 PM
multiple session cookies with session library - by El Forum - 10-15-2012, 01:10 PM
multiple session cookies with session library - by El Forum - 10-15-2012, 01:34 PM
multiple session cookies with session library - by El Forum - 10-15-2012, 01:41 PM
multiple session cookies with session library - by El Forum - 10-15-2012, 01:57 PM
multiple session cookies with session library - by El Forum - 10-15-2012, 01:58 PM
multiple session cookies with session library - by El Forum - 10-15-2012, 03:23 PM
multiple session cookies with session library - by El Forum - 10-15-2012, 07:06 PM
multiple session cookies with session library - by El Forum - 10-15-2012, 07:19 PM
multiple session cookies with session library - by El Forum - 10-15-2012, 07:23 PM
multiple session cookies with session library - by El Forum - 10-15-2012, 09:54 PM
multiple session cookies with session library - by El Forum - 10-16-2012, 05:43 AM
multiple session cookies with session library - by El Forum - 10-16-2012, 06:17 AM
multiple session cookies with session library - by El Forum - 10-16-2012, 07:18 AM
multiple session cookies with session library - by El Forum - 10-16-2012, 07:46 AM
multiple session cookies with session library - by El Forum - 10-16-2012, 11:42 PM
multiple session cookies with session library - by El Forum - 10-17-2012, 11:58 AM
multiple session cookies with session library - by El Forum - 10-17-2012, 01:02 PM
multiple session cookies with session library - by El Forum - 10-17-2012, 05:55 PM
multiple session cookies with session library - by El Forum - 10-18-2012, 06:25 AM
multiple session cookies with session library - by El Forum - 10-18-2012, 07:58 AM
multiple session cookies with session library - by El Forum - 10-18-2012, 08:30 AM
multiple session cookies with session library - by El Forum - 10-18-2012, 10:21 AM
multiple session cookies with session library - by El Forum - 10-18-2012, 11:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB