I try to get cookies to work. I try to store data the usual way
$cookie['username'] = $this->data['User']['username'];
$cookie['password'] = $this->data['User']['password'];
$this->Cookie->write('Auth.User',$cookie,true, '+2 weeks');
when I retrieve the cookie data with
$cookie = $this->Cookie->read('Auth.User');
debug($cookie);
the data is always corrupted.
Array
(
[Auth] => Array
(
[User] => ��
)
)
There is no difference whether I switch off encryption of the cookie
data, by setting the third value of Cookie->write to false. Any ideas,
what I am missing?
Cheers,
tobi_one
--~--~---------~--~----~------------~-------~--~----~
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