13 lines
194 B
PHP
13 lines
194 B
PHP
<?php
|
|
session_start();
|
|
|
|
// Unset all session variables
|
|
$_SESSION = [];
|
|
|
|
// Destroy the session
|
|
session_destroy();
|
|
|
|
// Redirect to the admin login page
|
|
header("Location: admin_login.php");
|
|
exit;
|