i have a big problem with cookies.
i set
$this->Cookie->name = 'cookiename';
$this->Cookie->time = '9600';
$this->Cookie->path = '/';
$this->Cookie->domain = '.domain.com';
$this->Cookie->secure = false;
$this->Cookie->key = 'sdfsdfsd';
$this->Cookie->write('User.name','Mike');
$this->Cookie->write('User.role', 'tester');
$this->Cookie->write('User.income', '20000');
debug($this->Cookie->read('User.role'));
in the before filter in the controller. Everything is fine.
But when i read the cookie in the same controller within an method i
don't get 'Mike' or 'tester'. Instead i get strange symbols like
"I� #3 ". everytime i hit F5- refresh, the symbols change. With the
cookieview addon for firefox i can see that the cookie value don't
change. It only happens when i encrypt the cookies!
Any idea? Please help me!
Thank you, greetings mike!
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment