]> git.wh0rd.org - tt-rss.git/blobdiff - include/functions.php
fix session write handler always assuming that database entry exists and failing...
[tt-rss.git] / include / functions.php
index a04a393ec3382c4fd852080e756f3cbc3e2d5e61..b290898329a2a0d157455b317d61174d5c47a833 100755 (executable)
 
                        if ($user_id && !$check_only) {
 
-                               if (session_status() != PHP_SESSION_NONE) {
-                                       session_destroy();
-                                       session_commit();
-                               }
-
-                               session_regenerate_id(true);
                                session_start();
+                               session_regenerate_id(true);
 
                                $_SESSION["uid"] = $user_id;
                                $_SESSION["version"] = VERSION_STATIC;