Welcome Guest, Not a member yet? Register   Sign In
delete_cookie()
#1

[eluser]ci_user[/eluser]
I'm trying to delete cookies on logout without success... any suggestions? My code is:
Code:
function logout(){
  $this->load->helper('cookie');
  delete_cookie('csrf_cookie_security');
  delete_cookie('anothercookie');
  $this->session->sess_destroy();
  $this->output->set_header("Cache-Control: no-store, no-cache, must-revalidate, no-transform, max-age=0, post-check=0, pre-check=0");
  $this->output->set_header("Pragma: no-cache");
}


Messages In This Thread
delete_cookie() - by El Forum - 06-27-2012, 09:18 AM
delete_cookie() - by El Forum - 06-27-2012, 09:40 AM
delete_cookie() - by El Forum - 06-27-2012, 10:03 AM
delete_cookie() - by El Forum - 06-27-2012, 10:09 AM
delete_cookie() - by El Forum - 12-20-2012, 12:49 AM
delete_cookie() - by El Forum - 12-20-2012, 01:00 AM
delete_cookie() - by El Forum - 12-20-2012, 01:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB