Rogier Neeleman
9 years ago
1 changed files with 23 additions and 0 deletions
@ -0,0 +1,23 @@
@@ -0,0 +1,23 @@
|
||||
<?php |
||||
defined('BASEPATH') OR exit('No direct script access allowed'); |
||||
|
||||
/** |
||||
* Logout Class |
||||
*/ |
||||
class Logout extends CI_Controller |
||||
{ |
||||
|
||||
public function __construct() |
||||
{ |
||||
parent::__construct(); |
||||
} |
||||
|
||||
public function index() |
||||
{ |
||||
$this->load->library('session'); |
||||
$this->session->sess_destroy(); |
||||
|
||||
redirect(base_url('/')); |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue