开发者

Tomcat 7 : request.getCookies() still returns a cookie that I deleted on the client

开发者 https://www.devze.com 2023-03-24 03:16 出处:网络
I\'m running Tomcat 7. I request localhost:8080 and using firebug I see a pre-existing cookie is being sent 开发者_StackOverflow中文版with the request.

I'm running Tomcat 7.

I request localhost:8080 and using firebug I see a pre-existing cookie is being sent 开发者_StackOverflow中文版with the request.

I then delete the cookie manually on the client .

I reload the page. Firebug shows no cookie is sent with the request.

On the server however, request.getCookies() still sees the cookie that was sent with the initial request. I would like to avoid this.

If I then restart Tomcat, and then re-reload the page, request.getCookies() no longer finds the old cookie.

Why is this happening? How can I stop this happening?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号