From 2ecb50a51cb322e81ce6f9d8d5907a5344f4f992 Mon Sep 17 00:00:00 2001 From: Mandragorat Wandystanu Date: Sun, 1 Apr 2018 16:58:24 +0200 Subject: Get login data from a new system. --- static/php/classes/Login.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'static/php/classes') diff --git a/static/php/classes/Login.class.php b/static/php/classes/Login.class.php index 8c15a7a..0f426eb 100644 --- a/static/php/classes/Login.class.php +++ b/static/php/classes/Login.class.php @@ -42,6 +42,7 @@ class Login 500 ); } else { + session_name('ssw_login'); session_set_cookie_params(self::ONE_YEAR, '/', '.wandystan.eu'); session_start(); } @@ -54,6 +55,6 @@ class Login */ public function isLoggedIn() { - return $_SESSION['c2_logowanie'] === 'ON' && !empty($_SESSION['c2_id']); + return !empty($_SESSION['login_id']); } } -- cgit v1.2.3