Is it possible to have more than one authentication cookie for a website?

advertisements

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):

  • A
  • B

2 Authenticationn cookies:

  • Website A has authentication cookie A
  • Website B has authentication cookie B

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.


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.