thanks for your response!
I tried just a single key and it does not work either. I tried various
cookie settings, but none of them seem to have an influence on this
issue. The current cookie settings I'm using is just
$this->Cookie->name = 'somename';
$this->Cookie->time = '2 weeks'; // or '1 hour'
Maybe something on the serverside that could lead to this strange
behaviour?
Cheers,
tobi_one
On 30 Okt., 21:18, John Andersen <j.andersen...@gmail.com> wrote:
> How is the cookie settings?
> Have you tried with a simple test, using not Auth.User, but another
> key?
> Enjoy,
> John
>
> On Oct 30, 6:32 pm, tobi_one <tobias.h...@gmail.com> wrote:
>
> > Hi,
>
> > 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