Skip to content
Permalink
Browse files

Fix cookielifetime variable declaration for CakeSession.

  • Loading branch information...
predominant authored and markstory committed Jun 23, 2010
1 parent b054e12 commit 86a7263ab5e0bc041bae06b8b54fed06fef7dc65
Showing with 8 additions and 0 deletions.
  1. +7 −0 cake/libs/cake_session.php
  2. +1 −0 cake/tests/cases/libs/view/helpers/session.test.php
@@ -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 @@ function testError() {
*/
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'));

0 comments on commit 86a7263

Please sign in to comment.
You can’t perform that action at this time.