Cake cookies are session cookies. If you want to set browser cookies,
use the php setcookie() function.

http://php.net/manual/en/function.setcookie.php

On Jun 21, 5:50 pm, DragonFlyEye <dragonflyey...@gmail.com> wrote:
> My cookie variables:
>
>         function beforeFilter() {
>                 $this->Cookie->name = 'mag_sess_hst';
>                 $this->Cookie->time =  31536000;  // or '1 year'
>                 $this->Cookie->path = '/';
>                 //$this->Cookie->domain = 'localhost';
>                 $this->Cookie->secure = false;  //i.e. only sent if using 
> secure
> HTTPS
>                 $this->Cookie->key = '!lftmD5b!nry';  // Dirt Sleep
>         }
>
> On Jun 21, 12:48 pm, DragonFlyEye <dragonflyey...@gmail.com> wrote:
>
> > Ok, upon further diagosis, I've discovered that one of my issues had
> > to do with the fact that I'm developing locally: because the virtual
> > machines I was browsing these pages on were using the IP address and
> > I'm developing internally, there was some confusion as to what the
> > proper cookie domain should have been. So now they both work
> > consistently and right but for one detail:
>
> > The cookies that are set to expire in a year are actually being shown
> > by FireBug as Session cookies and indeed, are expiring the minute the
> > browser window is closed. So, can anyone point me in the right
> > direction here?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to