diff options
| author | Mandragorat Wandystanu <wktir@wandystan.eu> | 2018-04-01 16:58:24 +0200 |
|---|---|---|
| committer | Mandragorat Wandystanu <wktir@wandystan.eu> | 2018-04-01 16:58:24 +0200 |
| commit | 2ecb50a51cb322e81ce6f9d8d5907a5344f4f992 (patch) | |
| tree | 3c413da58d7d3bbbbdc3a669446730de78f675a1 /static | |
| parent | 9835173dddee851ff18334d80120e7f1cbb96194 (diff) | |
Get login data from a new system.
Diffstat (limited to 'static')
| -rw-r--r-- | static/php/classes/Login.class.php | 3 |
1 files changed, 2 insertions, 1 deletions
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']); } } |
