How to disable Form authentication

  • Thread starter Thread starter ad
  • Start date Start date
A

ad

I use authorization to Form in the root Web.config
But now I want to disable the Form authentication when request some web
pages
How can I do?
 
There are a couple of ways to tackle this creature. If you can isolate the
items in question in another folder, you can set up that folder with another
web.config with different settings. It is easier if the protected pages are
in the lower folder.

Otherwise you can use <location> tags for each location you wish to have
different settings:

<!- Configuration for the "Sub1" subdirectory. -->
<location path="sub1">
<system.web>
<httpHandlers>
<add verb="*" path="Sub1.Scott" type="Sub1.Scott"/>
<add verb="*" path="Sub1.David" type="Sub1.David"/>
</httpHandlers>
</system.web>
</location>

Finally, you can set up an HttpHandler to handle specific pages, but this is
the bazooka to kill an ant approach in most cases.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think Outside the Box!
*************************************************
 
Thanks,
I prefer to put the page without authentication in another folder.
How can I set the web.config to disable the Form authentication ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top