Permalink
Browse files

Fixing issue where creating cookies in the beforeFilter would result in

cookies with the wrong expiry time. Thanks 'RabidFire' for the patch. Fixes #1523
  • Loading branch information...
1 parent a5fb2cf commit 71f76080a2a254bb203681b3db7047e665915ade @markstory markstory committed Feb 10, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 cake/libs/controller/components/cookie.php
@@ -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);
+ }
}
/**

0 comments on commit 71f7608

Please sign in to comment.