summaryrefslogtreecommitdiff
path: root/include/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-03 19:16:59 +0400
committerAndrew Dolgov <[email protected]>2013-04-03 19:16:59 +0400
commit4ad99f23ff7fcc9bdbd7428b9bb1ffaad31481e5 (patch)
tree77ecf92cb04f941a53231de0a47cd9748091fd54 /include/functions.php
parent6f431804a907027dd5dd33b5284b7386b29710fb (diff)
deinitialize session in login_sequence() instead of sessions.php
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php
index c05ee0a49..05f184eaf 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -754,6 +754,11 @@
if (!$_SESSION["uid"]) render_login_form($link);
+ @session_destroy();
+ setcookie(session_name(), '', time()-42000, '/');
+
+ exit;
+
} else {
/* bump login timestamp */
db_query($link, "UPDATE ttrss_users SET last_login = NOW() WHERE id = " .