Welcome Guest, Not a member yet? Register   Sign In
Dynamically set configuration on session expire doesn't work
#1

[eluser]Usman -Halal IT[/eluser]
Hi,
I have created an authentication library which uses CodeIgniter's session class. By default the session cookie remains alive for 7200 seconds as set on config.php but I want to increase it to 30 days if users check Remember Me in login form.

Code:
if($this->input->post('remember'))
{
    $this->config->set_item('sess_expiration', '2592000');
}

It sets successfully but it expires very soon. Please give me any suggestions.

Thanks,
Usman.


Messages In This Thread
Dynamically set configuration on session expire doesn't work - by El Forum - 06-04-2010, 02:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB