Skip to content

Commit

Permalink
Adding static to destroy()
Browse files Browse the repository at this point in the history
  • Loading branch information
predominant authored and markstory committed Jul 28, 2010
1 parent f47ee0d commit 1dd02b7
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions cake/libs/cake_session.php
Expand Up @@ -97,14 +97,6 @@ class CakeSession {
*/
public static $sessionTime = false;

/**
* The number of seconds to set for session.cookie_lifetime. 0 means
* at browser close.
*
* @var integer
*/
var $cookieLifeTime = false;

/**
* Keeps track of keys to watch for writes on
*
Expand Down Expand Up @@ -444,7 +436,7 @@ public static function write($name, $value) {
*
* @return void
*/
public function destroy() {
public static function destroy() {
$_SESSION = null;
self::$id = null;
self::init(self::$path);
Expand Down

0 comments on commit 1dd02b7

Please sign in to comment.