]> git.wh0rd.org Git - tt-rss.git/commitdiff
if empty session is autostarted because of a cookie, immediately destroy it
authorAndrew Dolgov <noreply@fakecake.org>
Mon, 15 Oct 2018 11:53:35 +0000 (14:53 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Mon, 15 Oct 2018 11:53:35 +0000 (14:53 +0300)
include/sessions.php

index f625cd16f59415f7c672662dffba84bc2afae88b..2d17bfd8e388363edef677662e8ac4db944649f2 100644 (file)
        if (!defined('NO_SESSION_AUTOSTART')) {
                if (isset($_COOKIE[session_name()])) {
                        @session_start();
+
+                       if (!$_SESSION['uid']) {
+                               logout_user();
+                       }
                }
        }