mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Adding static to destroy()
This commit is contained in:
parent
f47ee0d29a
commit
1dd02b77b2
1 changed files with 1 additions and 9 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue