summaryrefslogtreecommitdiff
path: root/include/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-04 15:33:14 +0400
committerAndrew Dolgov <[email protected]>2013-04-04 15:33:14 +0400
commit9ce7a5546c6d9cca8aa8be524d43c735e2bd7182 (patch)
treefd2326ab8a39f19737b391da537f3065d0b8fa55 /include/functions.php
parent82d77deb2876df4aac8536108404b93e20fd407b (diff)
implement some tweaks to session handling; properly remove session cookie if invalid/login failed
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php
index 71fd16542..9c64fad9f 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -756,9 +756,10 @@
}
if (!$_SESSION["uid"]) {
- render_login_form($link);
@session_destroy();
setcookie(session_name(), '', time()-42000, '/');
+
+ render_login_form($link);
exit;
}