Fixing issue where creating cookies in the beforeFilter would result in

cookies with the wrong expiry time. Thanks 'RabidFire' for the patch. Fixes #1523
This commit is contained in:
mark_story 2011-02-09 21:19:05 -05:00
parent a5fb2cf8a7
commit 71f76080a2

View file

@ -166,6 +166,9 @@ class CookieComponent extends Object {
function initialize(&$controller, $settings) {
$this->key = Configure::read('Security.salt');
$this->_set($settings);
if (isset($this->time)) {
$this->__expire($this->time);
}
}
/**