Hi Nicolas,
I would look into using Roles with your Forms Authentication. When you
verify your users credentials you also get their roles, if they are in an
Admin role then you can give them access to the backend directory. If they
are only in the Member role then they have no access. You can assign more
than 1 role to a user so you'll never need to do additional checks. In your
web.config file place <location> tags to have ASP.Net manage everything via
Roles for you (the <location> tags go right at the top of the web.config
file as below):
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="Members">
<system.web>
<authorization>
<allow roles="Member, Administrator"></allow>
<deny users="*"/>
</authorization>
</system.web>
</location>
<location path="Members/Backend">
<system.web>
<authorization>
<allow roles="Administrator"></allow>
<deny users="*"/>
</authorization>
</system.web>
</location>
..
..
..
Note that if you don't assign multiple roles to your users then you can
allow multiple roles access in the <location> tags. 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.
"Nicolas Bottarini" <ni**************@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Hi!!
I have a site with a backend subdirectory with the backend of the site.
I need that the site to have one login and the backend directory
another one. Is this possible with Forms Authentication??
What can i do??
Thanks
Nicolas