|
 |
aspx thread: Forms authentication query
Message #1 by "Bob Kelly" <bob.kelly@p...> on Thu, 25 Oct 2001 21:01:15
|
|
Having successfully set up Forms authentication for an ASP.Net application
I want to specifically exclude two pages from the security redirection so
that they can be browsed by potential new customers, in that way they can
read about the site before registering.
Can anyone tell me how to achieve this.
Regards
Bob Kelly
Message #2 by "Scott Guthrie" <scottgu@m...> on Thu, 25 Oct 2001 14:03:28 -0700
|
|
Hi Bob,
You can accomplish this simply by *not* requiring authorization on those
pages -- and instead allowing any user to hit it. You can control this
within your application's web.config file.
For example:
<configuration>
<!-- By default deny anonymous access to all pages -->
<system.web>
<authorization>
<deny users=3D"?"/>
</authorization>
</system.web>
<!-- Override to allow everyone to access the below two pages -->
<location path=3D"Default.aspx">
<system.web>
<authorization>
<allow users=3D"*"/>
</authorization>
</system.web>
</location>
<location path=3D"PublicPage.aspx">
<system.web>
<authorization>
<allow users=3D"*"/>
</authorization>
</system.web>
</location>
</configuration>
Hope this helps,
Scott
-----Original Message-----
From: Bob Kelly [mailto:bob.kelly@p...]
Sent: Thursday, October 25, 2001 2:01 PM
To: ASP+
Subject: [aspx] Forms authentication query
Having successfully set up Forms authentication for an ASP.Net
application
I want to specifically exclude two pages from the security redirection
so
that they can be browsed by potential new customers, in that way they
can
read about the site before registering.
Can anyone tell me how to achieve this.
Regards
Bob Kelly
---
VBug Winter Conference 2001
Open Forum: Dan Appleman will be hosting an open
forum at The .NET Developer's Conference on
29th November 2001. The session will give
developers the chance to discuss and question
Dan on his experience with the .NET environment.
Dan has been programming Visual Basic since the
alpha version 1.0. And with over 10 years
Visual Basic experience is well qualified to
help you on your road to being a .NET Guru.
http://www.vbug.co.uk/redirect.asp?url=3D39&id=3D17
---
You are currently subscribed to
aspx as: scottgu@m...
$subst('Email.Unsub')
|
|
 |