java - How can delete information from cookies? -
i have used webservice application , want delete information cookies saved on 1 state , must deleted on state on particular condition given. how can so? thanks
check http://www.ehow.com/how_5169279_remove-cookies-java.html
how can delete cookie within jsp page?
a cookie, mycookie, can deleted using following scriptlet:
<% cookie killmycookie = new cookie("mycookie", null); killmycookie.setmaxage(0); killmycookie.setpath("/"); response.addcookie(killmycookie); %>
how delete cookie set servlet?
get cookie request object , use setmaxage(0)
, add cookie response object.
Comments
Post a Comment