Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Found Answer on to Delete a Cookie in servlet Request

 
craig motell
Greenhorn
Posts: 6
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I asked how to delete a cookie in a servlet. I was always trying something like:


but cookie would never go away. I would add setDomain, setSecure, etc, etc.

The trick is also to set the value. Why do you need to set a value if you are going to delete a cookie? Uhm,

anyway the following actually deletes a cookie


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic