Database and Session IDs - why changed them every 5 minutes?

I'm loving CI.

I want to keep track of a users session (Im using the default length). Every time they click a certain item, I want to store it in the data base so they can view it later.

I would use the session ID as they key - and possibly the time stamp to guarantee uniqueness. But if the sess ID changes, every thing goes to heck, if you get me.

How would you approach this?


You can extend the length of time the session stays alive. I believe it's in the config.php file.

I believe the re-generation of session id is a security "thing". Makes it less likely to succeed in re-using a session incase someone would get hold of yours through whatever means. I could be wrong. Smile

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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