Click here to Skip to main content
15,878,852 members
Please Sign up or sign in to vote.
1.33/5 (2 votes)
See more:
I want to know about your user management strategies in a application. My Logic is:
- create user group
- create permission set
- create user
- assign page wise permission to each user/group
- on each page load read permissions for the logged in user and allow user to work accordingly

If you have anything other than this logic or any modification in this logic, please let me know.
Posted
Updated 30-Jun-13 22:18pm
v2
Comments
Prasad Khandekar 1-Jul-13 4:08am    
Instead of loading permissions each time, try to generate the effective matrix only once during login and serve that later on. A slight disadvantage though is that it won't reflect the last minute changes done to user's permissions. But otherwise will be much faster. You can use HTTPSession to store the computed permissions.

Other way could be do this entirely on the server side, by restricting the individual services based on the permissions.

Regards,
AnkitGoel.com 1-Jul-13 5:10am    
if you use ASP.Net role based authentication and authorization, this will be managed by ASP.net automatically. All you have to do is create a login page and specify permissions in web.config file.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900