0

I want to delete the cookie ci_session

Is it possible?

If the user select don't want cookies, I delete the cookie with delete_cookie('ci_session'), but if the user refreshes the page, the cookie ci_session is generated.

matthias_h
  • 11,356
  • 9
  • 22
  • 40
NARTONIC
  • 452
  • 10
  • 22
  • Does this answer your question?https://stackoverflow.com/questions/13930774/codeigniter-deleting-my-cookies – Piotr Niewinski Mar 18 '20 at 11:35
  • 1
    Does this answer your question? [CodeIgniter deleting my cookies](https://stackoverflow.com/questions/13930774/codeigniter-deleting-my-cookies) – ich5003 Mar 18 '20 at 14:59

1 Answers1

1

This helper function gives you friendlier syntax to get browser cookies. Refer to the Input Library for detailed description of its use, as this function acts very similarly to CI_Input::cookie(), except it will also prepend the $config['cookie_prefix'] that you might’ve set in your application/config/config.php file.

delete_cookie($name[, $domain = ''[, $path = '/'[, $prefix = '']]]);

Documentation

And see this : How to delete cookie on codeigniter