File "logout.php"

Full path: /home/julaysp1/public_html/admin/logout.php
File size: 313 B (313 B bytes)
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Editor &nnbsp; Back

<?php
// Start session
session_start();
$token = "admin_token=".$_SESSION['admin_token'];
// Destroy all session variables
unset($_SESSION['admin_token']);
unset($_SESSION['admin_id']);

// Redirect to login page (you can modify this to the correct login page path)
header("Location: index.php?$token");
exit;
?>