mirror of
https://github.com/pi-hole/web.git
synced 2026-05-08 17:49:49 +01:00
d31cf9d156
Signed-off-by: 4n4nk3 <47717886+4n4nk3@users.noreply.github.com>
16 lines
369 B
PHP
16 lines
369 B
PHP
<?php
|
|
|
|
require_once 'scripts/pi-hole/php/persistentlogin_token.php';
|
|
|
|
// If the user wants to log out, we free all session variables currently registered
|
|
// and delete any persistent cookie.
|
|
session_start();
|
|
session_unset();
|
|
|
|
if (isset($_COOKIE['persistentlogin'])) {
|
|
logoutPersistentLoginToken($_COOKIE['persistentlogin']);
|
|
}
|
|
|
|
header('Location: login.php');
|
|
exit;
|