Hi,
If you are using roles this is really fast to do. Put this in your
<system.web> section of your web.config file:
<authentication mode="Forms">
<forms loginUrl="Login.aspx"></forms>
</authentication>
<authorization>
<allow users="*" /> <!-- Allow all users -->
</authorization>
Then at the top right under <configuration> put in something like below that
matches what you want to do:
<location path="Members/Administrator">
<system.web>
<authorization>
<allow roles="Administrator"></allow>
<deny users="*"/>
</authorization>
</system.web>
</location>
<location path="Members/Customer">
<system.web>
<authorization>
<allow roles="Customer"></allow>
<deny users="*"/>
</authorization>
</system.web>
</location>
That gives Administrators access to the
www.mysite.com/members/administrator
folder and Customers access to the
www.mysite.com/members/customer folder.
If someone who isn't in the correct role tries to access any .aspx files in
those folders they are redirected to the login.aspx page. Good luck! Ken.
--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.
"V. Jenks" <an*******@discussions.microsoft.com> wrote in message
news:07****************************@phx.gbl...
Using forms authentication, can I control which pages
and/or directories a user would have access to or is that
only available with Windows authentication?
Thanks!