mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
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:
parent
a5fb2cf8a7
commit
71f76080a2
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue