almightyegg Posted March 29, 2007 Share Posted March 29, 2007 How do you get rid of cookies? eg. When a user logs out... Quote Link to comment Share on other sites More sharing options...
hitman6003 Posted March 29, 2007 Share Posted March 29, 2007 http://us2.php.net/setcookie#id5522640 Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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... Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.