almightyegg Posted March 29, 2007 Share Posted March 29, 2007 How do you get rid of cookies? eg. When a user logs out... Link to comment https://forums.phpfreaks.com/topic/44835-destroying-cookies/ Share on other sites More sharing options...
hitman6003 Posted March 29, 2007 Share Posted March 29, 2007 http://us2.php.net/setcookie#id5522640 Link to comment https://forums.phpfreaks.com/topic/44835-destroying-cookies/#findComment-217737 Share on other sites More sharing options...
almightyegg Posted March 29, 2007 Author Share Posted March 29, 2007 It didn't work. It said headers couldn't be sent even though it has nothing to do with headers :S Link to comment https://forums.phpfreaks.com/topic/44835-destroying-cookies/#findComment-217741 Share on other sites More sharing options...
hitman6003 Posted March 29, 2007 Share Posted March 29, 2007 Creating and destroying cookies is done through headers...so, yes, it does have to do with headers. Make sure that you are not outputting any data to the browser before you are making any kind of "setcookie" call. Link to comment https://forums.phpfreaks.com/topic/44835-destroying-cookies/#findComment-217744 Share on other sites More sharing options...
almightyegg Posted March 29, 2007 Author Share Posted March 29, 2007 Oh ok. I'll see what I can do... Link to comment https://forums.phpfreaks.com/topic/44835-destroying-cookies/#findComment-217747 Share on other sites More sharing options...
The Little Guy Posted March 29, 2007 Share Posted March 29, 2007 make sure destroying the cookies is above all the HTML. Link to comment https://forums.phpfreaks.com/topic/44835-destroying-cookies/#findComment-217793 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.