ASP.NET MVC应用程序所需的表单身份验证相关帮助 [英] Forms Authentication related help required for ASP.NET MVC application
问题描述
您好我正在开发一个ASP.NET MVC4社交网络应用程序,它将拥有5种类型的用户,即学生,管理员,主管,提供商等。我想使用表单身份验证,因为它是一个Internet应用程序。我的数据库有USERS,ROLES和FEATURES表以及SQL server中的其他表。
如何在ASP.NET MVC中实现身份验证?
我在哪里存储登录用户的信息? (例如session,viewbag,tempdata等)以及实现它的最佳方法是什么?我不想使用MVC提供的默认websecurity功能。
请帮助我。
提前谢谢。
演练:表格使用MVC进行身份验证 [ ^ ]
Hi I am developing an ASP.NET MVC4 social networking application which will be having 5 types of users namely student, administrator, supervisor, providers, etc. I want to use forms authentication as it is a internet application. My database has USERS, ROLES & FEATURES tables along with other tables in SQL server.
How do I implement the authentication in ASP.NET MVC?
Where do I store the logged in user''s information? (e.g. session, viewbag, tempdata, etc.) and what would be the best approach to implement this? I do not want to use default websecurity feature provided by MVC.
Kindly help me on this.
Thanks in advance.
Walkthrough: Forms Authentication with MVC[^]
这篇关于ASP.NET MVC应用程序所需的表单身份验证相关帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!