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.

http://www.hccp.org/java-net-cookie-how-to.html


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -