Files
school/projects/challange 2/SkillSphere/SkillSphere/assets/php/logout.php
vista-man 470ba84655 l
2024-12-06 21:06:27 +01:00

7 lines
192 B
PHP

<?php
session_start();
session_unset(); // Remove all session variables
session_destroy(); // Destroy the session
header("Location: login.php"); // Redirect to login page after logout
exit();