Search code examples
asp.nettimeoutdirectoryvirtual.net-1.1

Same application code but different web.config and different virtual directory session timeout


I have two asp.net 1.1 applications which have the same code but use different web.config settings. They are mapped to two different virtual directories say vd1 and vd2. The login pages hence become vd1/login.aspx and vd2/login.aspx

While I am logged into one app, if I log into the other one, I get logged out of the first one and vice-verca. What can be the reason for this kind of a behaviour?

Thanks in advance!


Solution

  • I got the fix. It had to do with the cookiename. I had to give a different cookie name to each copy of the application. Hope it helps someone!