basic login with database

  • Thread starter Thread starter Allen Anderson
  • Start date Start date
A

Allen Anderson

I've been reading a lot of articles on how to setup role based login
and I don't quite get how it all comes together.

What I want, is to be able to validate users against my database and
allow them access to files/pages based on their user group (also in my
own database).

From what I've seen so far, I need to setup user types that are
actually groups to be impersonated in the web config file. Then
authenticate a user to my database first then run formsauthenticate
against built in authentication???

Once I authenticate them against my database I also need to remember
who they were/authenticated as. How do I do all this?

thanks
 
You put code in your global.asax.vb, in the AuthenticateRequest event to
verify that every request comes from an authenticated user.

I successfully developed an app using role-based forms authentication
by using the techniques outlined in these articles:
http://support.microsoft.com/default.aspx?scid=kb;en-us;311495
http://www.4guysfromrolla.com/webtech/121901-1.2.shtml

Here is another article you may find useful as well:
http://www.eggheadcafe.com/articles/20020906.asp

If you have any other specific questions, let us know.
 
using the responses from both Steve and Jon I was able to implement
this exactly as I needed. Thanks to both of you for pointing me in
the right direction.
 

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