Checking the size of the session cookie - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Checking the size of the session cookie (/showthread.php?tid=28966) |
Checking the size of the session cookie - El Forum - 03-26-2010 [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. Checking the size of the session cookie - El Forum - 03-26-2010 [eluser]InsiteFX[/eluser] echo sizeof(cookie); Checking the size of the session cookie - El Forum - 03-28-2010 [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. |