Wolphie Posted February 26, 2009 Share Posted February 26, 2009 I have a problem when trying to remove cookies. I use setcookie('COOKIE_NAME', '', time() - 3600); To remove the cookie, however, the cookie isn't being removed. Anyone had a similar issue? Link to comment https://forums.phpfreaks.com/topic/146959-solved-remvoing-cookies/ Share on other sites More sharing options...
Wolphie Posted February 26, 2009 Author Share Posted February 26, 2009 Never mind I found the problem, I'm using AJAX to make this request, therefore data has already been sent when the setcookie() function is called. Link to comment https://forums.phpfreaks.com/topic/146959-solved-remvoing-cookies/#findComment-771482 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.