web.config - for multiple applications

From: SYoung (anonymous_at_discussions.microsoft.com)
Date: 01/30/04

  • Next message: Joe Kaplan \(MVP - ADSI\): "Re: Adjusting security setting to run an embedded windows control in IE"
    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


  • Next message: Joe Kaplan \(MVP - ADSI\): "Re: Adjusting security setting to run an embedded windows control in IE"

    Relevant Pages

    • Best way to deploy authentication on web services
      ... I'm building a distributed app that will be accessible to both domain ... web server that holds the client app with 2 virtual directories. ... Is it possible to have one authentication scheme on the ... passed back to the web service to future calls? ...
      (microsoft.public.dotnet.framework.aspnet.webservices)
    • Re: Web app deployment Server Error
      ... Are your userID and workstation in the same domain as the Web server? ... the authentication that IE passes through won't be recognized. ... > done the app proceeded. ... > logon to my remote client I might have understood (I don't want the ...
      (microsoft.public.dotnet.framework.aspnet)