I have exactly the same problem. On developing server everything works like a charm but on production encrypted cookies return values quite different than has been written. Any help would be very appreciate. :)
Cheers, Quess On Nov 2, 1:17 pm, tobi_one <tobias.h...@gmail.com> wrote: > Hi, > > I played around with this a little more. It turned out that the > problem is tied to the standard encryption of the cookie. > If I turn encryption off, it works. I didn't notice that in the first > place, because the old cookies were not deleted... > > I encrypt the values now myself, as a work-around, but still > interested in finding out what causes this problem in the first place! > > Cheers, > tobi_one > > On 2 Nov., 08:59, tobi_one <tobias.h...@gmail.com> wrote: > > > > > Hi John, > > > 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- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-...@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cake-php?hl=.