Skip to content
Permalink
Browse files

Add access to started() on CakeSession.

  • Loading branch information...
predominant authored and markstory committed Jun 23, 2010
1 parent c8c677a commit 58c94b85788e0c77985832819604eaf63b602988
Showing with 2 additions and 3 deletions.
  1. +2 −3 cake/libs/cake_session.php
@@ -219,7 +219,6 @@ public function start() {
/**
* Determine if Session has been started.
*
* @access public
* @return boolean True if session has been started.
*/
function started() {
@@ -593,7 +592,7 @@ protected function _checkValid() {
if (time() > ($time - (Security::inactiveMins() * Configure::read('Session.timeout')) + 2) || $check < 1) {
$this->renew();
$this->write('Config.timeout', 10);
$this->write('Config.timeout', Security::inactiveMins());
}
}
$this->valid = true;
@@ -605,7 +604,7 @@ protected function _checkValid() {
} else {
$this->write('Config.userAgent', $this->_userAgent);
$this->write('Config.time', $this->sessionTime);
$this->write('Config.timeout', 10);
$this->write('Config.timeout', Security::inactiveMins());
$this->valid = true;
$this->__setError(1, 'Session is valid');
}

0 comments on commit 58c94b8

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