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:
@@ -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, '/');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user