• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Questions regarding CI_Session and session regeneration

[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:
$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?

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.