ASP: Role-based User Authentication Support

Today's article is a complete look at  how to configure the database to handle roles for our precious users, and then we'll explore a simple way to authenticate users on a task by task basis. The idea is to map users to the areas of functionality, or modules, they will use.

We make a simple but scalable role based authentication system by storing the data in a normalized way allowing us to easily rebuild the data in the user's session, and  create a quick but logical way to query this data. We implement the ever-important security check, and make sure that the user is forced to log out when his/her permissions change.

Although this tutorial is not beginner-level, all the code is provided if you just want the solution without understanding how we got there!

$2.79
- OR -

Robert Stuttaford

Robert StuttafordI live in Cape Town, South Africa. I've been pushing 1's and 0's ever since my first computer at the age of 11. Ever since then I've always known I'll be a geek. I now work for Wireframe Studio in sunny Cape Town, and have been for the last 3 years. I'm the database / ASP / dynamic Flash guy here. I'm also one of the XHTML / CSS guys. I have alot of fun in my work because I develop solutions in a variety of ways. I always have something to do, and one project is always different to the next. I actually do have a girlfriend amongst all that!

See All Postings From Robert Stuttaford >>