add agent panel
This commit is contained in:
22
CONTENT/ROOT_URI/Agent/logout.php
Normal file
22
CONTENT/ROOT_URI/Agent/logout.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
$_SESSION = [];
|
||||
|
||||
if (ini_get("session.use_cookies")) {
|
||||
$params = session_get_cookie_params();
|
||||
setcookie(
|
||||
session_name(),
|
||||
'',
|
||||
time() - 42000,
|
||||
$params["path"],
|
||||
$params["domain"],
|
||||
$params["secure"],
|
||||
$params["httponly"]
|
||||
);
|
||||
}
|
||||
|
||||
session_destroy();
|
||||
echo "<script>window.location.href='/Agent/agent-login'</script>";
|
||||
// header("Location: login.php");
|
||||
exit;
|
||||
Reference in New Issue
Block a user