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.
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.
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 = '']]]);
And see this : How to delete cookie on codeigniter