Welcome Guest, Not a member yet? Register   Sign In
session record deleted
#1

[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...
#2

[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
#3

[eluser]Unknown[/eluser]
Perfect! I've probabily missed that part from the User Guide Smile
Thanks a lot!!




Theme © iAndrew 2016 - Forum software by © MyBB