summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-28 09:09:41 +0400
committerAndrew Dolgov <[email protected]>2013-03-28 09:09:41 +0400
commit60ed4c9ad50e10dc2e91991de32df5e9289ceda6 (patch)
treeda87087f2fe1b2252b3456044d4440ed5e5f9431 /classes
parent79bb55892baf86f05725053135f63d3e15cc99d0 (diff)
add yet another workaround for stuck login due to session cookies
Diffstat (limited to 'classes')
-rw-r--r--classes/handler/public.php5
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"] = "";