I have two virtual applications under a website using IIS 6 with a different application pools, however, when I log onto one, it uses the same login session for the second application, how can I prevent this from happening, requiring both applications to
have their own login sessions. Authentication mode is set fo forms for both.
That worked however now I have another problem, the path element is case sensitive, so if it's set to /Abc and a user navigates via /abc then it won't take.
pj_martins
Member
10 Points
17 Posts
Using different login sessions for different virtual applications in a website.
Nov 02, 2012 02:34 PM|LINK
I have two virtual applications under a website using IIS 6 with a different application pools, however, when I log onto one, it uses the same login session for the second application, how can I prevent this from happening, requiring both applications to have their own login sessions. Authentication mode is set fo forms for both.
BrockAllen
All-Star
27524 Points
4902 Posts
MVP
Re: Using different login sessions for different virtual applications in a website.
Nov 02, 2012 02:44 PM|LINK
Set the path in the <form> element for each app's path in IIS. This will scope to the cookie to each app's URL.
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/
pj_martins
Member
10 Points
17 Posts
Re: Using different login sessions for different virtual applications in a website.
Nov 03, 2012 12:45 AM|LINK
That worked however now I have another problem, the path element is case sensitive, so if it's set to /Abc and a user navigates via /abc then it won't take.
BrockAllen
All-Star
27524 Points
4902 Posts
MVP
Re: Using different login sessions for different virtual applications in a website.
Nov 03, 2012 12:50 AM|LINK
Yes, welcome to the web -- URLs are case sensitive. :)
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/
pj_martins
Member
10 Points
17 Posts
Re: Using different login sessions for different virtual applications in a website.
Nov 03, 2012 01:01 AM|LINK
Found a solution, used a different name in each web config file instead of setting the path.
<forms name="CookiesA"
<forms name="CookiesB'
Thanks