summaryrefslogtreecommitdiff
path: root/logout.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-10-16 09:27:09 +0300
committerAndrew Dolgov <[email protected]>2018-10-16 09:27:09 +0300
commitdcffa74b03d56b85b1eb5904a4a2e6aa1818f4b2 (patch)
treed6119c3d486baff05d38e46d6b9e5170f4ad0d57 /logout.php
parentb2b9d3649d8e51a756e68aa81e00c87105de4aa3 (diff)
force logout user when login from is rendered
Diffstat (limited to 'logout.php')
-rw-r--r--logout.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/logout.php b/logout.php
index 06fe527..e365b9f 100644
--- a/logout.php
+++ b/logout.php
@@ -2,13 +2,7 @@
require_once "config.php";
require_once "sessions.php";
- session_destroy();
-
- if (isset($_COOKIE[session_name()])) {
- setcookie(session_name(), '', time()-42000, '/');
- }
-
- session_commit();
+ logout_user();
header("Location: login.php");