Files
WrenchBoradWeb/www/application/controllers/Logout.php
T
2019-05-31 11:26:35 -04:00

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);
}
}