Fix PHP errors on logout
This commit is contained in:
@@ -37,6 +37,7 @@ class Auth extends CI_Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$data['messages'] = $this->messages->get('success');
|
$data['messages'] = $this->messages->get('success');
|
||||||
|
$this->messages->clear(); // clear all messages
|
||||||
|
|
||||||
if ($this->form_validation->run() === true) {
|
if ($this->form_validation->run() === true) {
|
||||||
// check for "remember me"
|
// check for "remember me"
|
||||||
|
|||||||
@@ -183,6 +183,7 @@ class Access {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->ci->session->sess_destroy();
|
$this->ci->session->sess_destroy();
|
||||||
|
$this->ci->session->sess_create();
|
||||||
|
|
||||||
$this->ci->messages->add(_('Logged out successfully'), 'success');
|
$this->ci->messages->add(_('Logged out successfully'), 'success');
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user