forms authentication and roles

P

Phil Townsend

I am integrating forms authentication in a web app which authenticates
users who are listed in a SQL Server table. There will be a small list
of application roles associated with each user and I would like to store
this list of roles in SQL as well. How would one go about this? Thanks!
 
S

Scott Mitchell [MVP]

Phil said:
I am integrating forms authentication in a web app which authenticates
users who are listed in a SQL Server table. There will be a small list
of application roles associated with each user and I would like to store
this list of roles in SQL as well. How would one go about this? Thanks!

Let me throw another URL into the pot:

Role-Based Authorization With Forms Authentication
http://aspnet.4guysfromrolla.com/articles/082703-1.aspx

Happy Programming!

--

Scott Mitchell
(e-mail address removed)
http://www.4GuysFromRolla.com

* When you think ASP.NET, think 4GuysFromRolla.com!
 
P

Phil Townsend

Mark,Nicholas

Both of these articles were a big help, thanks!

I have one further question: if a user is successfully logged, but only
has access to certain directories, and tries to access a forbidden
directory, he is redirected back to the login screen. I would like to
change this so that attempts to access directories without credentials
are answered with a message rather than being redirected back to the
login screen. Thanks again...
 

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

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top