From 18a9831cd3408ec4ac7e22320f1f92ef81c6d293 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Mon, 16 May 2016 13:46:35 -0700 Subject: restrict static to the one function that requires it --- Zotlabs/Web/Session.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Zotlabs/Web') diff --git a/Zotlabs/Web/Session.php b/Zotlabs/Web/Session.php index 5ee4343df..248da51a7 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; - static public function init() { + public function init() { $gc_probability = 50; @@ -51,7 +51,7 @@ class Session { } - static public function start() { + public function start() { session_start(); self::$session_started = true; } @@ -71,7 +71,7 @@ class Session { } } - static public function new_cookie($xtime) { + public function new_cookie($xtime) { $newxtime = (($xtime> 0) ? (time() + $xtime) : 0); @@ -98,7 +98,7 @@ class Session { } - static public function extend_cookie() { + public function extend_cookie() { // if there's a long-term cookie, extend it @@ -112,7 +112,7 @@ class Session { } - static public function return_check() { + 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