0, 'path' => '/', 'domain' => '', 'secure' => $secure, 'httponly' => true, 'samesite' => 'Lax', ]); if (session_status() === PHP_SESSION_NONE) { session_start(); } // CSRF Token generieren, falls nicht vorhanden if (empty($_SESSION['csrf_token'])) { $_SESSION['csrf_token'] = bin2hex(random_bytes(32)); }