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 difference between jspwriter and servlet printwriter?

0 Answers  


how to make a jsp page threadsafe?

2 Answers   Mastek,


What is jstl used for?

0 Answers  


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

0 Answers  


What is jsp taglib?

0 Answers  


What is session object in jsp?

0 Answers  


How many tags are provided in jstl?

0 Answers  


What jsp lifecycle methods can I override?

0 Answers  


What is the requirement of a tag library?

0 Answers  


What is a session in web?

0 Answers  


How clear chache and buffer of opera browser.

0 Answers  


How to comment out jsp code?

0 Answers  


Categories