User Login Page

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

You can use Forms Authentication to password protect just certain pages or
allows anon access to certain pages the same as you can with folders: by
modifying your Web.Config file.
 
you can use the location element within web.config file for that.
actually didnot get your message very clearly ....

but here;s what i think...
if you have a sub dir called abc... and you wish to protect that....
you add a location element and specify which roles / users can access it.

you can go about put the all the pages in a single dir... and use the
location element specify for what pages the users need to log in
you can set up roles and authentication using forms authentication.. which
is pretty alright...

you can easily access the role information if its is marked as login
required.. then the user will be taken to login page as specify in your
authentication element...

have a look into forms authentication

http://msdn.microsoft.com/library/e...hecookieauthenticationprovider.asp?frame=true
 
Hi,
If I setup part of my web site to require users to login can I keep some
pages that are related only to that section of the site availble to all
users.

Example, I have a different section on my site where users must login, I
wish to have links on each login page to information pages that have the
information on how to register. I don't want to put these file in a
different folder instead i'd like to just let all users have access to them.
Can this be done.

Thank you
Kenneth Keeley
 
You can do this with <Location> tag option in config file. Using this you
can set autorization setting for a particular file or for particular web
folder. For example you refer the following code

<location path="<filename>">
<system.web>
<autorization>
<allow users="*"
</autorization>
</system.web>
</location>
 

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

Back
Top