session record deleted - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: session record deleted (/showthread.php?tid=23936) |
session record deleted - El Forum - 10-26-2009 [eluser]Unknown[/eluser] Hi everyone, i'm quite new to CI and i'm actually going through the user guide. Talking about the session class, i've noticed how CI can store session infoprmation on a db table (if enabled on config file). By default session id is regenerated every 5 min, creating de facto a new record. My question is: are the old records ( with previous ids) automatically destroyed? If i manually destroy a session, it erases the corresponding db record, but not the previous ones which have different session ids but always come from my session period. Thank you for any response... session record deleted - El Forum - 10-26-2009 [eluser]Jamie Rumbelow[/eluser] CodeIgniter's Session Library does contain a built-in garbage collection system; older, expired sessions are cleaned from the database table when necessary. You will never have to worry about manually cleaning up the records. It's pretty smart, you know! Read more on [url="http://ellislab.com/codeigniter/user-guide/libraries/sessions.html"]database sessions in the User Guide[/url]. Jamie session record deleted - El Forum - 10-26-2009 [eluser]Unknown[/eluser] Perfect! I've probabily missed that part from the User Guide Thanks a lot!! |