aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Web
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-05-16 02:03:15 -0700
committerredmatrix <git@macgirvin.com>2016-05-16 02:03:15 -0700
commit605c05fc8b6af43c095818a69150e35b41795d78 (patch)
treeab0a39d433218dc8234329a3cce739b53dacc733 /Zotlabs/Web
parentfa3aed4e5997f60f9970b036681b8fac68c136d2 (diff)
downloadvolse-hubzilla-605c05fc8b6af43c095818a69150e35b41795d78.tar.gz
volse-hubzilla-605c05fc8b6af43c095818a69150e35b41795d78.tar.bz2
volse-hubzilla-605c05fc8b6af43c095818a69150e35b41795d78.zip
changes to session for cdev compatibility
Diffstat (limited to 'Zotlabs/Web')
-rw-r--r--Zotlabs/Web/Session.php12
1 files changed, 6 insertions, 6 deletions
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