Re: cookie tutorial

2008-10-30 Thread jamescowhen
Awesome, should add that to the cakephp books On Oct 28, 1:34 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > i figured it out. > > it works if put the following lines in beforeFilter() of the > controller (don't put it in app_controller.php) > > $this->Cookie->name = 'location'; >   $this->

Re: cookie tutorial

2008-10-28 Thread [EMAIL PROTECTED]
i figured it out. it works if put the following lines in beforeFilter() of the controller (don't put it in app_controller.php) $this->Cookie->name = 'location'; $this->Cookie->time = 3600; // or '1 hour' $this->Cookie->path = '/'; $this->Cookie->domain = 'localhost'; $this->Cookie->sec

Re: cookie tutorial

2008-10-28 Thread [EMAIL PROTECTED]
I have the same issue, even removing the domain settings. When I restart IE, it looks like the cookie is gone. $this- >Cookie.read($key) return null. Not sure why this happened. On Oct 23, 11:44 pm, . <[EMAIL PROTECTED]> wrote: > Is there a cake ticket for this? Or a possible fix? > > > > On Thu

Re: cookie tutorial

2008-10-23 Thread .
Is there a cake ticket for this? Or a possible fix? On Thu, Oct 23, 2008 at 2:47 AM, jamescowhen <[EMAIL PROTECTED]> wrote: > > I have the same issue, removing the domain seem to fix it, but that > doesn't get at the root of the problem > > On Oct 21, 11:31 pm, . <[EMAIL PROTECTED]> wrote: > > sa

Re: cookie tutorial

2008-10-23 Thread jamescowhen
I have the same issue, removing the domain seem to fix it, but that doesn't get at the root of the problem On Oct 21, 11:31 pm, . <[EMAIL PROTECTED]> wrote: > same here.. so you still are leaving out the domain variable? > > On Tue, Oct 21, 2008 at 11:13 AM, Stinkbug <[EMAIL PROTECTED]> wrote: >

Re: cookie tutorial

2008-10-22 Thread .
same here.. so you still are leaving out the domain variable? On Tue, Oct 21, 2008 at 11:13 AM, Stinkbug <[EMAIL PROTECTED]> wrote: > > I had a problem with cookies a while back. Couldn't seem to reference > them after I saved them. I know the docs say the domain variable is > required, but as so

Re: cookie tutorial

2008-10-21 Thread Stinkbug
I had a problem with cookies a while back. Couldn't seem to reference them after I saved them. I know the docs say the domain variable is required, but as soon as removed it, everything started working as expected. On Oct 20, 1:27 am, . <[EMAIL PROTECTED]> wrote: > I don't think it is saving the

Re: cookie tutorial

2008-10-19 Thread .
I don't think it is saving the cookie, because if i go to another page, doing $this->Cookie->read('name') returns null... how do i persist the cookie? On Sun, Oct 19, 2008 at 11:25 PM, . <[EMAIL PROTECTED]> wrote: > $this->Cookie->name = 'location'; > $this->Cookie->time = 3600; // or '1 hou

Re: cookie tutorial

2008-10-19 Thread .
$this->Cookie->name = 'location'; $this->Cookie->time = 3600; // or '1 hour' $this->Cookie->path = '/'; $this->Cookie->domain = 'localhost'; $this->Cookie->secure = true; //i.e. only sent if using secure HTTPS $this->Cookie->key = 'qSI232qs*&sXOw!'; $this->Cookie->write('name','Larry

Re: cookie tutorial

2008-10-19 Thread Daniel Hofstetter
Hi, > is there any tutorial about cookie component for cakephp? i am having > trouble using it. http://book.cakephp.org/view/177/Cookies Hope that helps! -- Daniel Hofstetter http://cakebaker.42dh.com --~--~-~--~~~---~--~~ You received this message because you a

cookie tutorial

2008-10-19 Thread .
is there any tutorial about cookie component for cakephp? i am having trouble using it. --~--~-~--~~~---~--~~ 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 T