<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Logout extends CI_Controller {
    
    public function __construct() {
        parent::__construct();
    }

    public function index(){
        $this->session->unset_userdata ('user_name');
        $this->session->unset_userdata ('user_logged_in');
        $this->session->unset_userdata ('company_slag');
        $this->session->sess_destroy();
        redirect('login');
    }

}?>