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

7 lines
192 B
PHP
Raw Permalink Normal View History

2022-11-02 15:46:47 +00:00
<?php
session_start();
2022-11-20 21:33:42 +00:00
//unset variables that manage login
2022-11-02 15:46:47 +00:00
unset($_SESSION['loggedin']);
2022-11-16 13:27:51 +00:00
unset($_SESSION['admin']);
2022-11-20 21:33:42 +00:00
echo'<script>window.location.href = "../index.php";</script>'; //redirect
2022-11-02 15:46:47 +00:00
?>