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

Why session is used?

0 Answers  


How to connect jsp and java file?

0 Answers  


What are page directives?

0 Answers  


Why we use jsp instead of html?

0 Answers  


What are jsp implicit objects?

0 Answers  


What are different types of comments used in jsp?

0 Answers  


Which tag should be used to pass information from jsp to include jsp?

0 Answers  


What is the difference between server side and client side programming?

0 Answers  


i am using rich faces datatable rich:datatable. On entering the value, values get filtered in table. Now how can i get the value in back9ing bean..?

1 Answers  


What is expression language in jsp?

0 Answers  


What is the difference between <jsp:forward> and sendRedirect?

6 Answers   HCL,


Can I use javascript on jsp page?

0 Answers  


Categories