How do i delete cookies inside my program?

I have a login page. I want to check whether cookies are available, if any for this user or not? And if available i want to delete previous one's. How do I do this inside my program? Can any body help me on this issue? pls.Thanks $ RegardsShashi
[267 byte] By [YShashidhara] at [2007-11-27 6:15:07]
# 1
Search javax.servlet.http.Cookie API for that. You can search cookies with getCookies method in the HttpServletRequestYou delete your cookie setting it a max age value of 0setMaxAge(0)
oropezaa at 2007-7-12 17:25:17 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
At the bottom of http://balusc.xs4all.nl/srv/dev-jep-usf.html you can find several useful utility methods to maintain cookies.
BalusCa at 2007-7-12 17:25:17 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...