P
Peter Morris [Air Software Ltd]
Hi
I validate the username/password and then execute the following code
System.Web.Security.FormsAuthentication.RedirectFromLoginPage(
authorId, RememberCheckBox.Checked
);
One folder I want to restrict to anyone logged in.....
<location path="Members">
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>
On another folder I want to restrict access only to a member which has
"IsAdministrator" set to True in the database.
<location path="Admin">
<system.web>
<authorization>
<deny users="*"/>
<allow roles="Admin"/>
</authorization>
</system.web>
</location>
Is this correct? How do I tell FormsAuthentication that the current user
has the Admin role?
Thanks
--
Pete
====
Read or write articles on just about anything
http://www.HowToDoThings.com
My blog
http://blogs.slcdug.org/petermorris/
I validate the username/password and then execute the following code
System.Web.Security.FormsAuthentication.RedirectFromLoginPage(
authorId, RememberCheckBox.Checked
);
One folder I want to restrict to anyone logged in.....
<location path="Members">
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>
On another folder I want to restrict access only to a member which has
"IsAdministrator" set to True in the database.
<location path="Admin">
<system.web>
<authorization>
<deny users="*"/>
<allow roles="Admin"/>
</authorization>
</system.web>
</location>
Is this correct? How do I tell FormsAuthentication that the current user
has the Admin role?
Thanks
--
Pete
====
Read or write articles on just about anything
http://www.HowToDoThings.com
My blog
http://blogs.slcdug.org/petermorris/