php-gallery/app/account/logout.php

15 lines
224 B
PHP
Raw Normal View History

2022-07-25 17:28:55 +00:00
<?php
// Initialize the session
session_start();
// Unset all of the session variables
$_SESSION = array();
// Destroy the session.
session_destroy();
// Redirect to login page
2022-09-07 09:41:18 +00:00
header("location: ../../index.php");
2022-07-25 17:28:55 +00:00
exit;
2022-09-07 09:41:18 +00:00