I start with the following code:
var $cookieName = 'MyCookie';
var $cookieKey = 'has82js737hak2';
function __construct()
{
parent::__construct();
$this->cookieDomain = '.'.$_SERVER['SERVER_NAME'];
}
Then I use it as follows:
$this->Cookie->write('page', $ptr, false);
$ptr=$this->Cookie->read('page');
It always returns NULL. What am I doing wrong?
P.S. I searched the archives and could not find a solution that
worked.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---