We have multiple copies of a web-app that is deployed on multiple paths on the same domain.
Each instance maintains a set of cookies each one defines its
"/" + .getWebDirRoot() - i.e.
When performing the following flow:
- Login to http://mydomain.com/abc
- Perform some activity
- Login to http://mydomain.com/abc123
- Perform some activity <-- Failure
This does not happen in FireFox. (And I haven't tried any other browser).
Is this a known behavior of
IE (I tested
Is there a way to overcome it (in a programmatic manner)?
Note: Just to clarify, this does not happen when switching from http://mydomain.com/abc to http://mydomain.com/xyz - the behavior is strictly restricted to flows where
currentUrl.startswith(urlAssociatedWithCookie) == true
I checked the behavior using Fiddler - I clearly see the HTTP request for
abc123 sent with the value of the cookie belonging to
I also checked the cookies on FireFox and they are as expected - one created per path.