This commit is contained in:
2026-03-16 09:17:28 +01:00
parent 50f38a9e9a
commit f689a67d18
22 changed files with 0 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
<?php
// 1. Rozpoczęcie sesji, aby mieć do niej dostęp
session_start();
// 2. Usunięcie wszystkich zmiennych sesyjnych (user_id, role, username)
session_unset();
// 3. Całkowite zniszczenie sesji na serwerze
session_destroy();
// 4. Przekierowanie użytkownika do strony logowania
header("Location: login.php");
exit();
?>