diff options
Diffstat (limited to 'logout.php')
| -rwxr-xr-x | logout.php | 14 | 
1 files changed, 14 insertions, 0 deletions
diff --git a/logout.php b/logout.php new file mode 100755 index 0000000..d2ae1dd --- /dev/null +++ b/logout.php @@ -0,0 +1,14 @@ +<?php
 +// Initialize the session
 +session_start();
 + 
 +// Unset all of the session variables
 +$_SESSION = array();
 + 
 +// Destroy the session.
 +session_destroy();
 + 
 +// Redirect to login page
 +header("location: login.php");
 +exit;
 +?>
\ No newline at end of file  | 
