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

How do I run a jsp file in linux?

0 Answers  


What is taglib uri in jsp?

0 Answers  


Differentiate between <jsp:include page=…> and <%@include file=…>.

0 Answers  


Why use of scripting elements in jsp is discouraged?

0 Answers  


how to make a jsp page threadsafe?

2 Answers   Mastek,


How can you include the results of another page?

0 Answers  


What are the advantages of jsp?

0 Answers  


Why session is used?

0 Answers  


How can we handle the exceptions in jsp?

0 Answers  


What is the requirement of a tag library?

0 Answers  


What is jstl?

0 Answers  


What is the difference between directive include and jsp include?

0 Answers  


Categories