Add the following features:
[Project_webapp.git] / includes / logout.php
diff --git a/includes/logout.php b/includes/logout.php
new file mode 100644 (file)
index 0000000..689d777
--- /dev/null
@@ -0,0 +1,7 @@
+<?php
+unset($_SESSION['email']);
+unset($_SESSION['IP_address']);
+session_destroy();
+echo "You've been successfully logged out, you will be redirected to the home page in 2 seconds. <br>";
+redirect("index.php", 2);
+?>