문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top