CakePHP:关于Cookie过期的问题

时间:2010-09-23 05:28:52

标签: cakephp cookies

如果$this->Cookie->write('Rating', $cookie, true, '+1 months');创建了1个Cookie 15天后,我读到了:

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

那么现在评级饼干的过期是15天还是1个月?

1 个答案:

答案 0 :(得分:0)

它应该还是1个月。