]> git.wh0rd.org Git - tt-rss.git/commitdiff
do not invalidate session when version_static and user agent changes
authorAndrew Dolgov <noreply@fakecake.org>
Fri, 30 Jan 2015 10:14:19 +0000 (13:14 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Fri, 30 Jan 2015 10:14:19 +0000 (13:14 +0300)
include/sessions.php

index 66214afe76923af8779795222958f376854b2992..12925a511641396b7d7762ffc85f56402b614702 100644 (file)
@@ -39,7 +39,7 @@
        function validate_session() {
                if (SINGLE_USER_MODE) return true;
 
-               if (VERSION_STATIC != $_SESSION["version"]) return false;
+               //if (VERSION_STATIC != $_SESSION["version"]) return false;
 
                $check_ip = $_SESSION['ip_address'];
 
                        return false;
                }
 
-               if (sha1($_SERVER['HTTP_USER_AGENT']) != $_SESSION["user_agent"]) {
+               /* if (sha1($_SERVER['HTTP_USER_AGENT']) != $_SESSION["user_agent"]) {
                        $_SESSION["login_error_msg"] =
                                __("Session failed to validate (user agent changed)");
                        return false;
-               }
+               } */
 
                if ($_SESSION["uid"]) {
                        $result = Db::get()->query(