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