|
Posted by Albert Peschar on 11/03/46 11:59
Note: This message is about the Prado framework, if you don't know what
it is you most certainly can't answer my question.
Hi,
I have this code:
$cookies = $this->Response->getCookies();
$cookie = new THttpCookie("RememberLogin", $login_data);
$cookies[] = $cookie;
Do I need to call some kind of "load" method, before loading a cookie
in
another request? Because I have this in my OnPreRender():
$cookies = $this->Response->getCookies();
$cookie =
this->Response->getCookies()->findCookieByName("RememberLogin");
var_dump($cookie);
If I run the request that creates the cookie in the same request I get
the cookie data, but if I then refresh the page without setting the
cookie it says:
NULL
Regards,
Albert Peschar
[Back to original message]
|