Welcome Guest, Not a member yet? Register   Sign In
Questions regarding CI_Session and session regeneration
#1

[eluser]David Cassidy[/eluser]
I have a few questions regarding the way CI_Session (the default session library) handles regenerating sessions.

For simplicity, let's say that, sometime during the user's visit, some custom userdata is created for him/her using:
Code:
$this->session->set_userdata('item', 'value')

After a brief period of time the user closes his/her browser, only to return shortly afterwards.

My questions are as follows:

Assuming the session cookie HAS NOT expired, will a new session be generated? If so, will the custom userdata still be available for retrieval? And, if the session cookie HAS expired, the session will obviously need to be regenerated, but will the custom userdata be destroyed then?


Messages In This Thread
Questions regarding CI_Session and session regeneration - by El Forum - 11-17-2007, 08:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB