if ($change) { //if the password was successfully changed $this->session->set_flashdata('message', $this->ion_auth->messages()); $this->logout(); }
function logout() { $this->data['title'] = "Logout"; //log the user out $logout = $this->ion_auth->logout(); //redirect them back to the page they came from redirect('auth', 'refresh'); }
$this->ci->session->sess_destroy();