CSY2028-assignment-1/public/account/logout.php

6 lines
115 B
PHP

<?php
session_start();
unset($_SESSION['loggedin']);
header('Location: ../index.php');
echo '<p>Logged Out</p>';
?>