first commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user