HTTP redirect and Cookies

Did you know that if a web server sends a HTTP 302 (redirect) response, with a set-cookie, the browser won’t take the cookie unless the cookie’s path is set to “/” ? This is how it can be set in Java (servlet):

I thought cookies are simple but in truth they are not. You…

Details