Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter extend user’s session expiration time
#1

[eluser]Unknown[/eluser]
Hi,

Is it possible to extend user's session expiration time in CI. What I want to do is, by default every user's session cookie lasts for example 1 day, but every time user visits the site his session expiration time is extended by one more day. So theoretically user would be kept logged in forever.

I don't know if it is a good idea to do this, maybe I should just set cookies life time for like a week and that's it?

Thanks!
#2

[eluser]pickupman[/eluser]
This will be the effect if you update your session length in config.php file. If you are storing sessions in the DB and enable the profiler, you will see the updates to the DB based on the users' activity.




Theme © iAndrew 2016 - Forum software by © MyBB