Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function logout() {
- $this->load->helper('url');
- $this->session->unset_userdata('username');
- $this->session->unset_userdata('is_logged_in');
- $this->session->unset_userdata('is_confirm');
- $this->session->sess_destroy();
- $this->session->set_userdata('is_logged_in',FALSE);
- echo "<script>window.location = 'http://www.google.com'</script>";
- redirect(base_url());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement