initial commit

This commit is contained in:
Borgal
2025-08-08 22:15:51 +02:00
commit 03fde990ca
10 changed files with 386 additions and 0 deletions

17
logout.php Executable file
View File

@@ -0,0 +1,17 @@
<?php
session_start(); // Session starten, bevor man sie zerstört
// Alle Session-Daten löschen
$_SESSION = array();
// Cookies löschen, indem ihr Verfallsdatum in die Vergangenheit gesetzt wird
setcookie('auth_token', '', time() - 3600, "/");
setcookie('user_id', '', time() - 3600, "/");
// Session zerstören
session_destroy();
// Weiterleitung zur Login-Seite
header("Location: login.php");
exit;