Files
assetmgt/logout.php
“VeLiTi” 670b00eeab Initial commit
2024-03-15 12:43:10 +01:00

15 lines
244 B
PHP

<?php
// Start sessions
session_start();
$_SESSION = array();
// Destroy all session related to user
$_SESSION['profile'] = '';
session_unset();
session_destroy();
// Redirect to login page
header('location: index.php');
exit;
?>