Click here to Skip to main content
15,910,661 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I use sections in C# for logging forum in web applications? To make my question clearer I just add this info that I need to jump to profiles item by entering a username and password, so in this case entering with the URL for ordinary people will be denied and you can make your server much safer.

[Edit] Improved English as best as I could.
Posted
Updated 21-Jul-11 1:17am
v3
Comments
shefeekcm 21-Jul-11 7:18am    
you mean session

If I understand you correctly you want to secure some areas of a websites to particular logins and roles, or possibly just one secure area for admin.

There isn't a single simple answer to your problem as there are many factors deciding how security needs to be done in each particular case. For example you can restrict authentication (login) to a web form as you suggest, but you might be better off using the user's windows identity if they are logged on to an internal domain.

For authorization you can restrict which users or roles can access a particular sub-directory in the website from web config. You can make fine-grained restrictions within a page or control.

There are a really good set of tutorials here[^] that will get you on your way to an informed decision and provide instructions for most of the points I have made.

Hope this helps.
 
Share this answer
 
I have a feeling you may mean this[^]. You'll need to carefully read the article but it should get you started if I have properly understood your question (which is not at all clear).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900