Click here to Skip to main content
15,891,951 members
Articles / Web Development / ASP.NET

Forms Authentication and Role based Authorization: A Quicker, Simpler, and Correct Approach

Rate me:
Please Sign up or sign in to vote.
4.78/5 (120 votes)
3 Dec 2009CPOL11 min read 379.4K   12.5K   368  
This article describes a correct and smarter way of implementing Role based authorization with Forms authentication in ASP.NET.

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RoleBasedFormAuthentication", "RoleBasedFormAuthentication.csproj", "{B29941D9-5166-459D-8BD5-0C385E97FF3F}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{B29941D9-5166-459D-8BD5-0C385E97FF3F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{B29941D9-5166-459D-8BD5-0C385E97FF3F}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{B29941D9-5166-459D-8BD5-0C385E97FF3F}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{B29941D9-5166-459D-8BD5-0C385E97FF3F}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

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


Written By
Founder SmartAspects
Bangladesh Bangladesh
I write codes to make life easier, and that pretty much describes me.

Comments and Discussions