Welcome Guest, Not a member yet? Register   Sign In
Checking the size of the session cookie
#1

[eluser]Daniel H[/eluser]
Hi -

Does anyone know how to check the size of the session's user_data? I'm having a few problems whereby the session data is being lost occasionally without any obvious reason, and I guess one potential issue is that it is exceeding 4kb. I'd rather not switch to db sessions just because I think that's overkill for my needs.

Any ideas?

Dan.
#2

[eluser]InsiteFX[/eluser]
echo sizeof(cookie);
#3

[eluser]Daniel H[/eluser]
No that's not quite what I meant - I need to know how big the data is in KB, since I want to make sure it isn't trying to store > 4KB.




Theme © iAndrew 2016 - Forum software by © MyBB