Add the following features:
[Project_webapp.git] / includes / logout.php
1 <?php
2 unset($_SESSION['email']);
3 unset($_SESSION['IP_address']);
4 session_destroy();
5 echo "You've been successfully logged out, you will be redirected to the home page in 2 seconds. <br>";
6 redirect("index.php", 2);
7 ?>