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

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  


Why is used in jsp?

0 Answers  


What is a expression?

0 Answers  


How does error handling occur with jstl?

0 Answers  


What is the most needed for STRUTS ?

2 Answers   Trigent,


What is a declaration statement?

0 Answers  


What is jsp scriptlet tag used for?

0 Answers  


What are the components that make up a tag library in jsp?

0 Answers  


What is jstl used for?

0 Answers  


What are context initialization parameters?

0 Answers  


How many tags are there in jsp?

0 Answers  


What are advantages of jsp over asp, php, pure servlets and others?

0 Answers  


Categories