File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Clear Cookie Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Clear Cookie" Watch "Clear Cookie" New topic

Clear Cookie

Ann Maria

Joined: Sep 09, 2005
Posts: 27
How to clear cookies.
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

Do you mean programmatically ?
You could use setMaxAge(0)

[My Blog]
All roads lead to JavaRanch
I agree. Here's the link:
subject: Clear Cookie
It's not a secret anymore!