1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-02-10 16:01:33 +00:00

add yet another workaround for stuck login due to session cookies

This commit is contained in:
Andrew Dolgov
2013-03-28 09:09:41 +04:00
parent 79bb55892b
commit 60ed4c9ad5
2 changed files with 9 additions and 3 deletions

View File

@@ -107,6 +107,13 @@
if (!defined('TTRSS_SESSION_NAME') || TTRSS_SESSION_NAME != 'ttrss_api_sid') {
if ($_COOKIE[$session_name]) {
@session_start();
if (!$_SESSION["uid"]) {
session_destroy();
if (isset($_COOKIE[session_name()])) {
setcookie(session_name(), '', time()-42000, '/');
}
}
}
}
?>