PHP variables are case sensitive. ($Month vs $month)
setcookie("username", $email, $Month,"/","localdomain.com",0);
On Sep 13, 4:38 am, Phper <[email protected]> wrote:
> I set cookie by the following statements:
>
> $Month=2592000+time();
> setcookie("username", $email, $month,"/","localdomain.com",0);
>
> I can detect that it was set successfully because I can retrieve the
> value of $_COOKIE['username']. However, when I shut down my browser
> and access the website again, I find that I don't log in. It seems
> that the website can not read the cookie value after the browser shuts
> down. Any idea?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---