From 1daf485246338eba9ded06c8e869b10530ba966b Mon Sep 17 00:00:00 2001 From: Oviya Balamurugan <cb.en.u4cse19341@cb.students.amrita.edu> Date: Thu, 11 Mar 2021 08:42:58 +0000 Subject: [PATCH] logout code --- logout.php | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 logout.php diff --git a/logout.php b/logout.php new file mode 100644 index 0000000..3b2b6a1 --- /dev/null +++ b/logout.php @@ -0,0 +1,8 @@ +<?php +session_start(); +unset($_SESSION["AID"]); +unset($_SESSION["ID"]); +session_destroy(); +header("location:index.php"); + +?> \ No newline at end of file -- GitLab