18 lines
387 B
PHP
18 lines
387 B
PHP
<?php
|
|
|
|
class Logout extends CI_Controller {
|
|
|
|
public function index() {
|
|
|
|
// delete session
|
|
$_SESSION['username'] = ""; //$this->input->post('username');
|
|
$_SESSION['name'] = ""; //$this->input->post('username');
|
|
$_SESSION['firstname'] = ""; //= $ret->firstname;
|
|
$_SESSION['lastname'] = ""; //= $ret->lastname;
|
|
|
|
|
|
redirect(home);
|
|
}
|
|
|
|
}
|