I am using to Implement Custom membership provider and role provider for authinticating purpose in Asp.net MVC 4.
I followed this blog .
This app is very big app and very sensitive.I am not using builtin Authentication of MVC,I want to implement my own database schema.
I need to provide different privileges on different pages for same users. For example, The same user could be an administrator on one page and a guest on another,Some users may have read/write role while other have read only etc etc..For this purpose i need to keep user's information like username,userid,user_role & some other profile information and to check them on each click and each page on website.
My providers are working properly,I just have these questions.
What is the best way(in term of security & CPU processing) to keep these information with me & then check/compare them
Don't baffle yourself with this deep questions. All the things you need are prepared by Microsoft Membership providers. You need no more than storing user data and roles assigned to them based on your scenario. Since we have 2 membership providers named Katana and Owin during Asp.net MVC progress time. But if you wanna implement your own membership provider, the problem differs, looking at the following links may be useful:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.