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

#1
[eluser]deco10[/eluser]
Hi
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?


Thanks!

#2
[eluser]stuffradio[/eluser]
You can extend the length of time the session stays alive. I believe it's in the config.php file.

#3
[eluser]Wuushu[/eluser]
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-2019 MyBB Group.