web.config - for multiple applications
From: SYoung (anonymous_at_discussions.microsoft.com)
Date: 01/30/04
- Previous message: Michel Gallant: "Re: Digital signing of assembly hosted in IE"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 30 Jan 2004 10:06:07 -0800
We have several web applications (webapp1, webapp2, webbapp3) that require a user to log in. The code on the login page of each application is exactly the same. We're using the Form authentication option on the web.config file on each application and they are all the same.
<authentication mode="Forms"><forms name="LogIn" loginUrl="login.aspx"
protection="All" path="/" timeout="120" /></authentication>
we made the following change from the above web.config <forms> tag to:
<authentication mode="Forms"><forms name="LogIn" loginUrl="http://localhost/loginapp/loginpage.aspx"
protection="All" path="/" timeout="120" /></authentication>
Now, we created a new web application (loginapp) with a unique login screen for all applications. The web.config file looks like this:
<authentication mode="Forms"><forms name="LogIn" loginUrl="loginpage.aspx"
protection="All" path="/" timeout="120" /></authentication>
The problem we're having is that the login application (loginapp) cookie is not recognized by any of the other applications (webapp1, webapp2, webbapp3).
Here's the app. structure on the web server:
wwwroot/webapp1
wwwroot/webapp2
wwwroot/webapp3
wwwroot/loginapp
- Previous message: Michel Gallant: "Re: Digital signing of assembly hosted in IE"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|