summaryrefslogtreecommitdiff
path: root/logout.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-10-15 15:59:16 +0300
committerAndrew Dolgov <[email protected]>2018-10-15 15:59:16 +0300
commit2a029c40505796c19a7fd4f86e140da2e5c548a4 (patch)
treeb0e987e3de7cd561917a4d42be7fe31e6a8abc26 /logout.php
parentb5b914878733d9c1a7f95f833dcda15cad9770d9 (diff)
add some session handling-related improvements
Diffstat (limited to 'logout.php')
-rw-r--r--logout.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/logout.php b/logout.php
index e4d40ed..06fe527 100644
--- a/logout.php
+++ b/logout.php
@@ -4,6 +4,12 @@
session_destroy();
+ if (isset($_COOKIE[session_name()])) {
+ setcookie(session_name(), '', time()-42000, '/');
+ }
+
+ session_commit();
+
header("Location: login.php");
?>