Welcome Guest, Not a member yet? Register   Sign In
Problem with cookie
#1

[eluser]Cálcio[/eluser]
Hi guys.

I have used the cookie from CI using the method $this->ci->load->helper('cookie'); and I'm setting the cookie like this:

Code:
set_cookie(array(
            'name' => "autologin",
            'value' => $login,
            'expire' => 5184000,
        ));

So, when I print the value using a simple method in my controller, the data return the correct value, however seems the expire time don't work. I think the value the expire is 60 days, but with a few minutes I lost my session.

Someone have a idea for this behavior.

Tnks.


Messages In This Thread
Problem with cookie - by El Forum - 02-16-2012, 09:33 AM
Problem with cookie - by El Forum - 02-16-2012, 12:40 PM
Problem with cookie - by El Forum - 02-17-2012, 03:51 AM
Problem with cookie - by El Forum - 02-17-2012, 04:14 AM
Problem with cookie - by El Forum - 02-17-2012, 04:38 AM
Problem with cookie - by El Forum - 02-17-2012, 05:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB