CodeIgniter Forums
ci_sessions table - session data NULL - 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: ci_sessions table - session data NULL (/showthread.php?tid=23196)



ci_sessions table - session data NULL - El Forum - 10-03-2009

[eluser]surfgatinho[/eluser]
Whenever I check my ci_sessions table I find around 90% of all entries have session data NULL.
It doesn't seem these are cleaned up by the garbage collection and when there are nearly 100,000 rows like this it starts to cause problems.

I may well write a cron job to clean these out every day but I was wondering if this problem is something to do with my setup, or why the GC doesn't remove them


ci_sessions table - session data NULL - El Forum - 10-03-2009

[eluser]InsiteFX[/eluser]
Show your code it would help for us to try and solve your problem.

Are you unsetting your sessions and then destorying them?

Enjoy
InsiteFX


ci_sessions table - session data NULL - El Forum - 10-03-2009

[eluser]surfgatinho[/eluser]
I'm using FreakAuth Light so I guess it might be related to that. Will have a look around and see what I can find