I would like to update the cookie containing a maxage (1 year) to 0 . I want to end it because I came to know that this is the reason I have to remove it.
I'm trying to do
response.addCookie (mycookie) with a cookie that has the same name as the cookie that I want to update.
Am I missing something?
You have given two important parameters: domain and path
Mycookie.setMaxAge (0); Mycookie.setDomain ("mydomain.com."); Mycookie.setPath ("/ myPath"); Response.addCookie (mycookie)
No comments:
Post a Comment