![]() |
cookie problem (Solved) - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: cookie problem (Solved) (/showthread.php?tid=78751) |
cookie problem (Solved) - neoneeco - 03-06-2021 Hello, I have a problem with a logout function. I think this is a CodeIgniter bug. I want to delete the authentication cookie when the logout function is called. But with the code below, the cookie is not deleted (it is as if the redirection was done faster than the deletion). The cookie reappears on my main page. When I remove the redirect line, the cookie is deleted. Do you have the same problem ? PHP Code: public function logout() RE: cookie problem - iRedds - 03-06-2021 PHP Code: //use redirect() works with the RedirectResponse instance. Although it extends the Response class, the instance is different. RE: cookie problem - neoneeco - 03-06-2021 It works Thank you very much |