Welcome Guest, Not a member yet? Register   Sign In
Increasing cookie's expiration time


I have an application made using latest CodeIgniter 2 release. I have a custom authentication system linked to an authentication API which is used globally for all our applications. It defines a session and a cookie which have a sess_expiration value of 2 hours (default).

I saw that when I browse (navigating through different controllers) my application for 2 hours long, I get disconnected because the cookie has expired.

Now, what I want is to be able to reset the sess_expiration value to 2 hours, each time a controller is called, but I can't find a method that allow me to do that, and I don't want to destroy the current session to create a new one because it would force me to redefine all userdata, which was set earlier by some of my controllers.

Is that even possible ?

Thanks in advance.



Messages In This Thread
Increasing cookie's expiration time - by _this - 09-29-2015, 04:23 AM
RE: Increasing cookie's expiration time - by Narf - 09-29-2015, 04:42 AM

Theme © iAndrew 2016 - Forum software by © MyBB