Pergunta

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?

Foi útil?

Solução

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top