Specifying all files except Login.aspx and Join.aspx are restricted to authenticated users

S

SamIAm

Hi

I have the following in my web.config to specify that all my pages require
authorization:

<authentication mode="Forms">
<forms
loginUrl="Login.aspx"
timeout="60"
path="/">
</forms>
</authentication>

</authentication>
<authorization>
<deny users="?" />
<allow users="*" />
</authorization>

I tried to include the following to allow users access to the Join.aspx page
too:

<location path="Join.aspx">
<system.web>
<authorization>
<deny users="*" />
</authorization>
</system.web>
</location>

But the doesn't seem to work.

How do I allow make all pages restricted except the Join.aspx and Login.aspx
pages?

Thanks,

S
 
E

Ed Gibbs

Sam,

Please see below.
<location path="Join.aspx">
<system.web>
<authorization>
<deny users="*" />

**** ABOVE SHOULD BE: said:
</authorization>
</system.web>
</location>

Hope this works out for you. Regards,
Ed

- - - - - - - - - - - - - - - -
Ed Gibbs
Director of Consulting Services
Douglas Associates, Inc.
Computer People Who Listen (SM)
 

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,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top