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
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
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
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
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
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
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 <
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
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 seem
to do anything about it. This is the code I've got:
___
[...]
var $cookieName = 'my.cookie';
va