Files
Progetto-PHP/PHP/logout.php
T
Emanuele Slusarz ec30fb40b9 first commit
2026-08-22 11:15:29 +02:00

17 lines
177 B
PHP
Executable File

<?php
session_start();
// Svuota i dati della sessione
$_SESSION = [];
// Distrugge la sessione
session_destroy();
// Torna al login
header("Location: index.php");
exit;