Welcome Guest, Not a member yet? Register   Sign In
Question about Cookie expiration
#1

[eluser]Kraig[/eluser]
In the config file I changed config['sess_expiration'] to be equal to 10 seconds...testing purposes.

Now in my code after the user has logged in I try and reset the sess_expiration by use of the following code:

Code:
$this->session->set_userdata($data);
    $this->config->set_item('sess_expiration', 7200);
    redirect('home/home');

How come the user is still being logged out after 10 seconds? Did I not change it to 7200??


Messages In This Thread
Question about Cookie expiration - by El Forum - 03-07-2012, 07:53 PM
Question about Cookie expiration - by El Forum - 03-07-2012, 08:30 PM
Question about Cookie expiration - by El Forum - 03-07-2012, 08:49 PM
Question about Cookie expiration - by El Forum - 03-07-2012, 08:56 PM
Question about Cookie expiration - by El Forum - 03-07-2012, 09:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB