repositories
/
Project_webapp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ b/
includes/logout.php
@@ -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);
+?>