Browse Source

Logout function

master
Rogier Neeleman 9 years ago
parent
commit
57dcfbc37a
  1. 23
      application/controllers/Logout.php

23
application/controllers/Logout.php

@ -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…
Cancel
Save