mirror of
https://github.com/myvesta/vesta
synced 2025-07-06 04:51:54 -07:00
Update index.php
This commit is contained in:
parent
292d933f88
commit
f31b4b4d41
1 changed files with 2 additions and 1 deletions
|
@ -4,10 +4,11 @@ session_start();
|
||||||
|
|
||||||
if (!empty($_SESSION['look'])) {
|
if (!empty($_SESSION['look'])) {
|
||||||
unset($_SESSION['look']);
|
unset($_SESSION['look']);
|
||||||
|
header("Location: /");
|
||||||
} else {
|
} else {
|
||||||
session_destroy();
|
session_destroy();
|
||||||
|
header("Location: /login/");
|
||||||
}
|
}
|
||||||
|
|
||||||
header("Location: /login/");
|
|
||||||
exit;
|
exit;
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue