diff --git a/application/controllers/auth.php b/application/controllers/auth.php index fce9b7c..57c5bf8 100644 --- a/application/controllers/auth.php +++ b/application/controllers/auth.php @@ -37,6 +37,7 @@ class Auth extends CI_Controller { } $data['messages'] = $this->messages->get('success'); + $this->messages->clear(); // clear all messages if ($this->form_validation->run() === true) { // check for "remember me" diff --git a/application/libraries/Access.php b/application/libraries/Access.php index dd496a2..e97d88c 100644 --- a/application/libraries/Access.php +++ b/application/libraries/Access.php @@ -183,6 +183,7 @@ class Access { } $this->ci->session->sess_destroy(); + $this->ci->session->sess_create(); $this->ci->messages->add(_('Logged out successfully'), 'success'); return true;