Files
school/projects/challenge 2/SkillSphere/SkillSphere/assets/php/logout.php
T
2025-04-15 01:01:23 +02: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();