Show sourcecode
The following files exists in this folder. Click to view.
webbserverprogrammering/projects/slutprojekt/endpoints/
create_account.php
login.php
logout.php
order-handling/
reset_password.php
restaurant_create_account.php
restaurant_login.php
logout.php
14 lines ASCII Windows (CRLF)
<?php
// Start the session
session_start();
// Unset all session variables
$_SESSION = array();
// Destroy the session
session_destroy();
// Redirect to the login page or home page
header("Location: ../login.php");
exit;