Initial commit
This commit is contained in:
19
login/logout.php
Normal file
19
login/logout.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
// Start the session
|
||||
session_start();
|
||||
|
||||
// Unset all of the session variables
|
||||
$_SESSION = array();
|
||||
|
||||
// Destroy the session
|
||||
session_destroy();
|
||||
|
||||
// Redirect the user to the login page
|
||||
echo "<script type='text/javascript'>
|
||||
window.top.location.href = '../index.html';
|
||||
</script>";
|
||||
|
||||
exit;
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user