mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-22 03:41:29 +00:00
implement some tweaks to session handling; properly remove session cookie if invalid/login failed
This commit is contained in:
@@ -756,9 +756,10 @@
|
||||
}
|
||||
|
||||
if (!$_SESSION["uid"]) {
|
||||
render_login_form($link);
|
||||
@session_destroy();
|
||||
setcookie(session_name(), '', time()-42000, '/');
|
||||
|
||||
render_login_form($link);
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user