if i am not wrong then :
u can not delte cookie.you have to write another cookie with same name .
previous wiill get destroyied.
-----Original Message-----
From: Sameer <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, December 21, 2000 5:34 PM
Subject: Cookie Deletion
>Hi all,
>
>I'm trying to delete a cookie using this :
>
> ...............
><%
>String name1 = request.getParameter("cookieno");
>Cookie delCookie = new Cookie(name1,null);
>delCookie.setMaxAge(0);
>response.addCookie(delCookie);
>%>
> ..............
>
>where name1 is the name of the cookie, this piece of code runs fine on Java
>Web Server, but when I use this on a Tomcat Server, I get a null pointer
>exception when I try to retrieve the cookies after I have executed the
above
>code,
>any help?...or suggestions on where i'm going wrong
>
>thanks in anticipation,
>Sameer
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html