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 clear chache and buffer of opera browser.

0 Answers  


How to run java program in jsp page?

0 Answers  


Why jsp is faster than servlet?

0 Answers  


How can we prevent implicit session creation in jsp?

0 Answers  


What is directive jsp?

0 Answers  


How do I set password expire time period?

1 Answers  


How many types of jsp tags are there?

0 Answers  


Write a simple example for the clone() method.

0 Answers  


What is meant by implicit objects and what are they?

0 Answers  


What do you mean by context initialization parameters?

0 Answers  


How can I set a cookie and delete a cookie from within a jsp page?

0 Answers  


What are the possible values for language directive?

0 Answers  


Categories