Authentication security help needed

C

Celine

I am new to asp.net and c#.
Only some web pages of my application need users to be logged in.
How do I need to set the web.config to restrict only some forms?
 
W

Wes Henderson

Celine,

The simple way to do what you're asking is to create separate folders for
the forms that (do/don't) require authentication. Use an appropriate
web.config for each.

Regards,
Wes Henderson

In order to help everyone, please direct all replies to this newsgroup.
This posting is provided "AS IS" with no warranties, and confers no rights.
 
P

Paul Glavich [MVP - ASP.NET]

Use

<location path="SomeDir or page">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>

in your web.config
 

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,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top