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 called jsp directive?

948


How can I implement a thread-safe jsp page?

925


Can jsp run without server?

896


How does error handling occur with jstl?

936


What is jsp index?

929


How to ignore the el expression evaluation in a jsp?

944


Why use of scripting elements in jsp is discouraged?

943


What is application in jsp?

867


What is the use of session management?

896


What is tag file?

888


Define Static Block.

953


What are the different types of jsp directive?

950


What is a scriptlet?

967


How can we avoid direct access of jsp pages from client browser?

1146


What are the advantages and disadvantages of thread-safe jsp page?

986