]> git.wh0rd.org - tt-rss.git/blobdiff - include/functions.php
move to let/const syntax in custom dojo modules
[tt-rss.git] / include / functions.php
index 5588590a85c2ab8a99268af9db4d20fef498d308..b290898329a2a0d157455b317d61174d5c47a833 100755 (executable)
 
                        if ($user_id && !$check_only) {
 
-                               /* 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");
-                                       return false;
-                               }
-
-                               session_regenerate_id(true);
                                session_start();
+                               session_regenerate_id(true);
 
                                $_SESSION["uid"] = $user_id;
                                $_SESSION["version"] = VERSION_STATIC;