14 lines
217 B
PHP
14 lines
217 B
PHP
<?php
|
|
// Initialize the session
|
|
session_start();
|
|
|
|
// Unset all of the session variables
|
|
$_SESSION = [];
|
|
|
|
// Destroy the session.
|
|
session_destroy();
|
|
|
|
// Redirect to login page
|
|
header("location: login.php");
|
|
exit;
|
|
?>
|