Re: Problem with reading cookie

2008-09-22 Thread Yodi Aditya
Good, i hope this will be help many people :D On 9/23/08, Kenchu <[EMAIL PROTECTED]> wrote: > > > Nice. :) > I also commented those pages in the docs... > > > On Sep 21, 6:45 pm, villas <[EMAIL PROTECTED]> wrote: > > Yes, you are right about that introduction; that section seems to be > > out of

Re: Problem with reading cookie

2008-09-22 Thread Kenchu
Nice. :) I also commented those pages in the docs... On Sep 21, 6:45 pm, villas <[EMAIL PROTECTED]> wrote: > Yes,  you are right about that introduction; that section seems to be > out of date when compared to the API: > > http://api.cakephp.org/cookie_8php-source.html > > I have now submitted an

Re: Problem with reading cookie

2008-09-21 Thread villas
Yes, you are right about that introduction; that section seems to be out of date when compared to the API: http://api.cakephp.org/cookie_8php-source.html I have now submitted an update for that section of the Book so that others will not be so confused. Hopefully it will appear soon once it has

Re: Problem with reading cookie

2008-09-20 Thread Kenchu
Actually, none of the properties seem to work, atleast not for me. Name and key (apart from time) do not work. Setting them directly in beforeFilter works though. On Sep 20, 9:41 pm, Kenchu <[EMAIL PROTECTED]> wrote: > I dont see the point of having a page where they show how to set > properties

Re: Problem with reading cookie

2008-09-20 Thread Kenchu
I dont see the point of having a page where they show how to set properties in the controller if they dont work. As you said, I did not use the long version of the write command, since it said on the page before how to set it up using properties. On Sep 20, 6:30 pm, villas <[EMAIL PROTECTED]> wro

Re: Problem with reading cookie

2008-09-20 Thread villas
Before you criticise, are you sure that you read and tried what it said in the docs? Example given in the docs is: $this->Cookie->write('last_name', 'Masters', false, '1 hour'); Therefore you should be able to do this: $this->Cookie->write('cart', array(124,1232,3232), false, '1 hour'); >From

Re: Problem with reading cookie

2008-09-20 Thread Kenchu
Thanks! Works perfect now. Though I think it's bad they dont say this in the documentation. On Sep 20, 11:42 am, "Yodi Aditya" <[EMAIL PROTECTED]> wrote: > Try using : > function beforeFilter() { >     $this->Cookie->time = '5 Days'; >     $this->Cookie->path = '/'; > > } > > On 9/20/08, Kenchu <

Re: Problem with reading cookie

2008-09-20 Thread Yodi Aditya
Try using : function beforeFilter() { $this->Cookie->time = '5 Days'; $this->Cookie->path = '/'; } On 9/20/08, Kenchu <[EMAIL PROTECTED]> wrote: > > > I've managed to get cookies working for the session, but if I restart > my browser, the cookies seem to be gone, and $cookieTime doesn't se