K
Kai Grossjohann
The HttpServletResponse class allows me to call addCookie to add a
cookie to the response. But how do I tell the browser that it should
forget a cookie that it already has?
Currently I'm using a special value to mean "forget this cookie" which
is checked for when the cookie is used. But I'm thinking that can't
be the right approach. (My cookie values are positive integers, so
I'm using -1 as the "forget it" value.)
Kai
cookie to the response. But how do I tell the browser that it should
forget a cookie that it already has?
Currently I'm using a special value to mean "forget this cookie" which
is checked for when the cookie is used. But I'm thinking that can't
be the right approach. (My cookie values are positive integers, so
I'm using -1 as the "forget it" value.)
Kai