Init commit with passman (and XSS) files aranged as a deployed environment

This commit is contained in:
2026-01-10 17:56:35 +02:00
commit 61c777f33a
14 changed files with 828 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
<?php
// Resume existing session (or start a new one)
session_start();
// Destroy the session in case of using session-based authentication
session_unset(); // Unset all session variables
session_destroy(); // Destroy the session
//redirect to the login page
echo '<script>window.location.href = "login.php";</script>';
exit();
/*
if (session_status() !== PHP_SESSION_ACTIVE) :void
{
session_start();
session_unset();
session_destroy();
session_write_close();
setcookie(session_name(), '', 0, '/');
session_regenerate_id(true);
}
*/
?>