diff options
Diffstat (limited to 'logout.php')
-rw-r--r-- | logout.php | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -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"); |