Skip to content

Commit bcfaf1c

Browse files
committed
🚧 Added logout script
1 parent a30cc08 commit bcfaf1c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

logout.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
session_start();
3+
4+
// Destroying All Sessions
5+
if(session_destroy()){
6+
header("Location: index.php");
7+
}
8+
?>

0 commit comments

Comments
 (0)