Forms Authentication - how to exclude certain files

P

Peter

I have a site which uses forms authentication but I would
like to exclude certain pages on the site from
authentication. In other words I would like the user to be
able to get to these pages without having to Log In.
How do I change my web.config file to exclude certain
files.

<authentication mode = "Forms">
<forms name = ".ASPX" loginURL="Authenticate.aspx"
protection = "All" path="/" />
</authentication>

Thanks.
 
C

Chris Jackson

You can put a different web.config in each folder, and the settings on the
child folder will override those on the parent. Just create a directory of
pages that don't need to be secured, and change the web.config on this
directory to allow non-authenticated users to access it.
 

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

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top