mirror of
https://github.com/pi-hole/web.git
synced 2025-12-26 05:26:19 +00:00
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;
|