Forms Authentication question: How to have some pages open and some requiring forms authentication
From: Eric (glorfindel02_at_hotmail.com)
Date: 02/13/04
- Next message: Marshal Antony: "Re: Attributes.Add not workign"
- Previous message: John Oakes: "Re: config error when deploying asp.net on server"
- Next in thread: Dan: "Re: Forms Authentication question: How to have some pages open and some requiring forms authentication"
- Reply: Dan: "Re: Forms Authentication question: How to have some pages open and some requiring forms authentication"
- Reply: Tommy: "Re: Forms Authentication question: How to have some pages open and some requiring forms authentication"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 12 Feb 2004 22:32:29 -0800
I am trying to build an app where the stuff in the root directory is open to
all, but anything under the Restricted directory requires you to login and I
want to use Forms to do it. I'm having trouble getting the web.config to
work properly.
First I tried to have a second web.config in the sub directory with
authentication and authorization set to forms, but it blew up.
Next, I tried to modify the root web.config in the following manner wanting
it to only force a login when trying to navigate into the sub directory but
it takes me to the login right away:
I thought setting the path to the sub directory would restrict it to pages
in the sub directory but it's not working.
<authentication mode="Forms" >
<forms loginUrl="FormsAuthenticated/login1.aspx" name="AuthCookie"
timeout="60" path="/FormsAuthenticated"></forms>
</authentication>
<authorization>
<deny users="?" />
<allow users="*" />
</authorization>
- Next message: Marshal Antony: "Re: Attributes.Add not workign"
- Previous message: John Oakes: "Re: config error when deploying asp.net on server"
- Next in thread: Dan: "Re: Forms Authentication question: How to have some pages open and some requiring forms authentication"
- Reply: Dan: "Re: Forms Authentication question: How to have some pages open and some requiring forms authentication"
- Reply: Tommy: "Re: Forms Authentication question: How to have some pages open and some requiring forms authentication"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|