restrict static to the one function that requires it
This commit is contained in:
parent
605c05fc8b
commit
18a9831cd3
@ -16,7 +16,7 @@ class Session {
|
|||||||
private static $handler = null;
|
private static $handler = null;
|
||||||
private static $session_started = false;
|
private static $session_started = false;
|
||||||
|
|
||||||
static public function init() {
|
public function init() {
|
||||||
|
|
||||||
$gc_probability = 50;
|
$gc_probability = 50;
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ class Session {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static public function start() {
|
public function start() {
|
||||||
session_start();
|
session_start();
|
||||||
self::$session_started = true;
|
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);
|
$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
|
// 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.
|
// check a returning visitor against IP changes.
|
||||||
// If the change results in being blocked from re-entry with the current cookie
|
// If the change results in being blocked from re-entry with the current cookie
|
||||||
|
Reference in New Issue
Block a user