Adding static to destroy()

This commit is contained in:
predominant 2010-07-12 09:57:04 +10:00 committed by mark_story
parent f47ee0d29a
commit 1dd02b77b2

View file

@ -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
*
@ -444,7 +436,7 @@ class CakeSession {
*
* @return void
*/
public function destroy() {
public static function destroy() {
$_SESSION = null;
self::$id = null;
self::init(self::$path);