summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-10-16 14:07:42 +0300
committerAndrew Dolgov <[email protected]>2018-10-16 14:07:42 +0300
commit5f66f872b6ddf5d3b70504fd870e6c4de69c1d19 (patch)
tree47663f70519a59e342a9ec66bef25b8c32f6cd76 /classes
parentd246fb9fe1f18eb98037758f1b7369b34258fbf7 (diff)
fix session write handler always assuming that database entry exists and failing silently if it doesn't; remove session cookie-related hacks
Diffstat (limited to 'classes')
-rwxr-xr-xclasses/handler/public.php8
1 files changed, 0 insertions, 8 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php
index 38a8d749b..de9c9684a 100755
--- a/classes/handler/public.php
+++ b/classes/handler/public.php
@@ -465,14 +465,6 @@ class Handler_Public extends Handler {
function login() {
if (!SINGLE_USER_MODE) {
- /* if a session is started here there's a stale login cookie we need to clean */
-
- if (session_status() != PHP_SESSION_NONE) {
- $_SESSION["login_error_msg"] = __("Stale session cookie found, try logging in again");
-
- header("Location: " . get_self_url_prefix());
- exit;
- }
$login = clean($_POST["login"]);
$password = clean($_POST["password"]);