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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is jstl jar?

842


What are the differences between get and load methods?

904


Is jsp platform dependent?

871


Can we override jsp service method?

884


Can we define a class inside a jsp page?

859


What jsp lifecycle methods can be overridden?

917


Give the syntax for jsp comments.

806


What is a scriptlet?

919


What is the standard action?

940


What are jsp implicit objects?

922


What is jsp and why do we need it?

867


How is jsp used in the mvc model?

1013


What are the standard actions available in jsp?

934


Why is it that JComponent have add() and remove() methods but Component doesn’t?

882


What are the different scopes an object can have in a jsp page?

934