简体   繁体   中英

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!

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!

Thanks. I am also facing the same issue. Where do we neet set the cookiename? Greatful if you can provide an example.

Edit : I found it..

<authentication mode="Forms">
    <forms name=".CookieName" loginUrl="LoginPage.aspx" />
</authentication>

好吧,我不确定,但是请检查您的虚拟目录web.config文件,您没有使用'clear'标签。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM