15 lines
244 B
PHP
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;
|
|
?>
|