From 57dcfbc37a0b5c9b08ad661b03743ca71cd7633c Mon Sep 17 00:00:00 2001 From: Rogier Neeleman Date: Mon, 7 Mar 2016 22:28:35 +0100 Subject: [PATCH] Logout function --- application/controllers/Logout.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 application/controllers/Logout.php diff --git a/application/controllers/Logout.php b/application/controllers/Logout.php new file mode 100644 index 0000000..2cfdde7 --- /dev/null +++ b/application/controllers/Logout.php @@ -0,0 +1,23 @@ +load->library('session'); + $this->session->sess_destroy(); + + redirect(base_url('/')); + } + +} \ No newline at end of file