diff options
author | Andrew Dolgov <[email protected]> | 2013-03-28 09:09:41 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-03-28 09:09:41 +0400 |
commit | 60ed4c9ad50e10dc2e91991de32df5e9289ceda6 (patch) | |
tree | da87087f2fe1b2252b3456044d4440ed5e5f9431 /classes/handler/public.php | |
parent | 79bb55892baf86f05725053135f63d3e15cc99d0 (diff) |
add yet another workaround for stuck login due to session cookies
Diffstat (limited to 'classes/handler/public.php')
-rw-r--r-- | classes/handler/public.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php index 51e50adc8..798e96343 100644 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -492,9 +492,6 @@ class Handler_Public extends Handler { } function login() { - @session_destroy(); - @session_start(); - $_SESSION["prefs_cache"] = array(); if (!SINGLE_USER_MODE) { @@ -503,6 +500,8 @@ class Handler_Public extends Handler { $password = $_POST["password"]; $remember_me = $_POST["remember_me"]; + @session_start(); + if (authenticate_user($this->link, $login, $password)) { $_POST["password"] = ""; |