From 605c05fc8b6af43c095818a69150e35b41795d78 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Mon, 16 May 2016 02:03:15 -0700 Subject: changes to session for cdev compatibility --- Zotlabs/Web/Session.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Zotlabs/Web') diff --git a/Zotlabs/Web/Session.php b/Zotlabs/Web/Session.php index e18ad38fb..5ee4343df 100644 --- a/Zotlabs/Web/Session.php +++ b/Zotlabs/Web/Session.php @@ -16,7 +16,7 @@ class Session { private static $handler = null; private static $session_started = false; - function init() { + static public function init() { $gc_probability = 50; @@ -51,7 +51,7 @@ class Session { } - function start() { + static public function start() { session_start(); self::$session_started = true; } @@ -62,7 +62,7 @@ class Session { * @return void */ - function nuke() { + static public function nuke() { self::new_cookie(0); // 0 means delete on browser exit if($_SESSION && count($_SESSION)) { foreach($_SESSION as $k => $v) { @@ -71,7 +71,7 @@ class Session { } } - function new_cookie($xtime) { + static public function new_cookie($xtime) { $newxtime = (($xtime> 0) ? (time() + $xtime) : 0); @@ -98,7 +98,7 @@ class Session { } - function extend_cookie() { + static public function extend_cookie() { // if there's a long-term cookie, extend it @@ -112,7 +112,7 @@ class Session { } - function return_check() { + static public function return_check() { // check a returning visitor against IP changes. // If the change results in being blocked from re-entry with the current cookie -- cgit v1.2.3