15 lines
402 B
PHP
15 lines
402 B
PHP
<?php
|
||
declare(strict_types=1);
|
||
require_once __DIR__ . '/config.php';
|
||
|
||
// Destroy the PHP session.
|
||
session_start();
|
||
session_destroy();
|
||
|
||
// Redirect the user to Authelia’s logout endpoint.
|
||
// Authelia will clean its session and then redirect back.
|
||
$logoutUrl = OIDC_LOGOUT_ENDPOINT
|
||
. '?post_logout_redirect_uri=' . urlencode(OIDC_POST_LOGOUT_REDIRECT_URI);
|
||
|
||
header('Location: ' . $logoutUrl);
|
||
exit; |