Fix cookielifetime variable declaration for CakeSession.

This commit is contained in:
predominant 2010-06-23 11:42:21 +10:00 committed by mark_story
parent b054e122f1
commit 86a7263ab5
2 changed files with 8 additions and 0 deletions

View file

@ -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.
*

View file

@ -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'));