Skip to content

Commit

Permalink
Fixing issue where creating cookies in the beforeFilter would result in
Browse files Browse the repository at this point in the history
cookies with the wrong expiry time. Thanks 'RabidFire' for the patch. Fixes #1523
  • Loading branch information
markstory committed Feb 10, 2011
1 parent a5fb2cf commit 71f7608
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cake/libs/controller/components/cookie.php
Expand Up @@ -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);
}
}

/**
Expand Down

0 comments on commit 71f7608

Please sign in to comment.