Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Controller component for authentication

Status
Not open for further replies.
Apr 11, 2002
193
IN
Hi,

I want to create a component where in every web request should pass through the component and the component should decide whether the user has got permission to view the page contents or not.
For example in case there are 2 users, user1 has got permission to view url and user2 has got permission to view Now if user1 try to view then he should be given a message that he is not authorized to view this page.

I want to store permissions in database with forms authentication. I am using .net 2.0 and SQL Server 2000.

Can anyone give me a idea on how this can be done.

Thanks,
Manish
 
read up on asp.net membership. and use the web.config file to control access. this is done with the authentication, authorization and location tags.

web.sitemap can also trim navigation if authentication/authorization is set.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top