Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to by-pass forms authentication for "Help/info" asp pages

Status
Not open for further replies.

skitty123

Technical User
May 4, 2004
56
US
Hi I have an ASP .net application and I am using Forms authentication.

I have some pages that are just "contact information" and "About this application.." etc .. how can I set the web.config so that these pages do not require authentication but teh rest of teh application still does?
 
Add this code into your web.config file.

Code:
<configuration>

...

<location path="ShowUser.aspx">
  <system.web>
    <authorization>
      <allow users ="?" />
    </authorization>
  </system.web>
</location>

</configuration>

The question mark allows any user to access that page.

Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top