JSP Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 180 Page Views: 

How deleting a cookie?    



Posted By: Avi Date: 4 November 2010 11:31:57 PM
 Answer:

Cookie c = new Cookie ("name", null); c.setMaxAge(0); response.addCookie(killCookie);


Posted By: avibtech


Date: 4 November 2010 11:31:57 PM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image MEuUVg
Related Questions
JSP : How does JSP handle runtime exceptions?

How does JSP handle runtime exceptions?

By using errorPage attribute of page directive JSP handles runtime exceptions and set isErrorPage = ....
Category: JSP Date: 11/2/2010 5:32:57 PM
JSP : What is the life cycle of servlet?

What is the life cycle of servlet?

1: the server loads and initializes the servlet by calling the init method. 2: This init() method ....
Category: JSP Date: 11/2/2010 5:32:56 PM
JSP : What are context initialization parameters?

What are context initialization parameters?

Context initialization parameters are specified by the <context-param> in the web.xml file and....
Category: JSP Date: 11/2/2010 4:59:56 PM
JSP : How can we import a Java package in a JSP page?

How can we import a Java package in a JSP page?

Following page directive is used to import Java package in a JSP page: &lt;%@ page import="....
Category: JSP Date: 10/30/2009 6:01:00 AM
JSP : How can I implement a thread-safe JSP page?

How can I implement a thread-safe JSP page?

You can make your JSP page thread-safe by having them implement the SingleThreadModel interface. Thi....
Category: JSP Date: 10/30/2009 5:54:43 AM