Question

All,

I have two asp.net 2.x websites (web forms based application) setup as virtual directories under same root website. As a matter of fact it is the same website code under two different virtual directories. I am using asp.net forms authentication for both.

When a user logs into the first website and then (immediately) opens another IE window and logs-in to the second website, upon returning to the first website (first IE window) he is logged out and has to log-in again. When he logs-in back to the first website and returns to the second website, now he is logged out there.

In summary, I would like to have a single user to be logged-in to two websites simultaneously and be able to switch between them constantly w/out being logged out.

What is causing this issue and is there work-around?

Was it helpful?

Solution

As suggested by users above, I was using same cookie name for both apps. Resolved.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top