<?php
session_start();

$_SESSION = [];

session_destroy();

$basePath = rtrim(str_replace('\\', '/', dirname($_SERVER['SCRIPT_NAME'] ?? '')), '/');
header("Location: " . $basePath . "/login");
exit;
