I'm attempting to add a cookie to a user agent in a servlet filter. When a request comes in, i check the request and see if the cookie already exists. If it is not found, I generate a new cookie with a unique value and add it to the response object.
What i'm finding is that the cookie's visibility seems to change depending on the request. What is the default behavior of creating a cookie without a path? Does the cookies path default to the request URI when added? I've started explicitly set the path of this cookie to "/" which seems to have fixed this behavior, but I'm trying to clarify that this was the root of my problem. Thanks, ~Scott
