Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How can a cookie is deleted with JSP?



How can a cookie is deleted with JSP?..

Answer / venkat

<%
Cookie killMyCookie = new Cookie("mycookie", null);
<%-- mycookie is the cookie instance which we have to
delete%>
killMyCookie.setMaxAge(0);
killMyCookie.setPath("/");
response.addCookie(killMyCookie);
%>

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More JSP Interview Questions

What is the jspinit() method?

0 Answers  


Can you disable jsp scripting?

0 Answers  


Is it possible to share an httpsession between a jsp and ejb? What happens when I change a value in the httpsession from inside an ejb?

0 Answers  


What is the difference between java servlet and jsp?

0 Answers  


How to connect jsp and java file?

0 Answers  


What is dynamic web project?

0 Answers  


What’s the difference between forward and sendredirect?

0 Answers  


Why do we need custom tags in jsp?

0 Answers  


What is application scope in jsp?

0 Answers  


What is difference between html and jsp?

0 Answers  


What does it mean when tags or attributes are said to be deprecated?

0 Answers  


Give the use of session object.

0 Answers  


Categories