Apologies for revisiting a perennial topic but I'm struggling to delete a cookie.
Basically I have a session cookie that I want to access in a
servlet filter then delete (expire). The code I'm using looks like this, in the doFilter method of the filter:
This appears to work fine, but the next time the user submits a request, the cookie is still there with a maxAge of -1. I'm using the Geronimo webserver.
Has anyone seen this before, and knows what I'm doing wrong?
Thanks,
John