You are here: Prado: Set and load cookies « PHP Programming Language « IT news, forums, messages
Prado: Set and load cookies

Posted by Albert Peschar on 12/16/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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация