diff options
author | Simon Rettberg | 2013-10-28 18:29:29 +0100 |
---|---|---|
committer | Simon Rettberg | 2013-10-28 18:29:29 +0100 |
commit | 160880836462e277c77427e71a2ba97a2ad17184 (patch) | |
tree | 656a2199846bb762c91fdfdebe30c54fd36b21c4 /inc/session.inc.php | |
parent | Show different content on main page depending on logged in/guest status (diff) | |
download | slx-admin-160880836462e277c77427e71a2ba97a2ad17184.tar.gz slx-admin-160880836462e277c77427e71a2ba97a2ad17184.tar.xz slx-admin-160880836462e277c77427e71a2ba97a2ad17184.zip |
DB-Support, add user functionality
Diffstat (limited to 'inc/session.inc.php')
-rw-r--r-- | inc/session.inc.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/inc/session.inc.php b/inc/session.inc.php index 4b4d4139..402e6cd9 100644 --- a/inc/session.inc.php +++ b/inc/session.inc.php @@ -19,19 +19,21 @@ class Session . $_SERVER['REMOTE_ADDR'] . mt_rand(0, 65535) . $_SERVER['REMOTE_PORT'] + . mt_rand(0, 65535) . $_SERVER['HTTP_USER_AGENT'] + . mt_rand(0, 65535) . microtime(true) . mt_rand(0, 65535) ); } - public static function createSession() + public static function create() { self::generateSessionId(); self::$data = array(); } - public static function loadSession() + public static function load() { // Try to load session id from cookie if (!self::loadSessionId()) return false; |