开发者

CakePHP: question about Cookies expire

开发者 https://www.devze.com 2023-01-17 18:39 出处:网络
if 1 cookie is create by$this->Cookie->write(\'Rating\', $cookie, true, \'+1 months\'); after 15 day, I read :

if 1 cookie is create by $this->Cookie->write('Rating', $cookie, true, '+1 months'); after 15 day, I read :

 $this->Cookie->read('Rating');
    do somthing .... this   
$this->开发者_StackOverflowCookie->write('Rating', $cookie, true, '+1 months');

Then now expire of rating cookies is 15 days or 1 month ?


It should still be 1 month.

0

精彩评论

暂无评论...
验证码 换一张
取 消