mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fix cookielifetime variable declaration for CakeSession.
This commit is contained in:
parent
b054e122f1
commit
86a7263ab5
2 changed files with 8 additions and 0 deletions
|
@ -83,6 +83,13 @@ class CakeSession extends Object {
|
|||
*/
|
||||
public static $time = false;
|
||||
|
||||
/**
|
||||
* Cookie lifetime
|
||||
*
|
||||
* @var integer
|
||||
*/
|
||||
public static $cookieLifeTime;
|
||||
|
||||
/**
|
||||
* Time when this session becomes invalid.
|
||||
*
|
||||
|
|
|
@ -191,6 +191,7 @@ class SessionHelperTest extends CakeTestCase {
|
|||
*/
|
||||
function testDisabling() {
|
||||
Configure::write('Session.start', false);
|
||||
CakeSession::destroy();
|
||||
$this->Session = new SessionHelper();
|
||||
$this->assertFalse($this->Session->check('test'));
|
||||
$this->assertFalse($this->Session->read('test'));
|
||||
|
|
Loading…
Reference in a new issue