Reputation: 20549
Is it possible to have more than one authentication cookie for one web site?
As it turned out it is not possible.
I have the following situation:
2 Web sites (same domain):
2 Authenticationn cookies:
Both cookies have sliding expiration enabled. Cookie A is shared between both sites.
When you login on web site A and B you have the two cookies for web site B. Will the shared cookie A be refreshed regarding sliding expiration when I access web site B?
EDIT: The answer is no.
Upvotes: 0
Views: 181
Reputation: 9891
If you are just using the built-in forms-authentication, then no.
However, if you create your own (which I would recommend against), then you would be able to.
Upvotes: 2
Reputation: 10598
short answer no, however you can either stuff extra data into the cookie, or define another one with different name, but you have to manage in both cases
to be able to answer better, more details are needed about the problem you are trying to solve
Upvotes: 1