deinitialize session in login_sequence() instead of sessions.php

This commit is contained in:
Andrew Dolgov 2013-04-03 19:16:59 +04:00
parent 6f431804a9
commit 4ad99f23ff
1 changed files with 5 additions and 0 deletions

View File

@ -754,6 +754,11 @@
if (!$_SESSION["uid"]) render_login_form($link); if (!$_SESSION["uid"]) render_login_form($link);
@session_destroy();
setcookie(session_name(), '', time()-42000, '/');
exit;
} else { } else {
/* bump login timestamp */ /* bump login timestamp */
db_query($link, "UPDATE ttrss_users SET last_login = NOW() WHERE id = " . db_query($link, "UPDATE ttrss_users SET last_login = NOW() WHERE id = " .