如何在不使用会话变量的情况下在mvc4中进行身份验证? [英] How to authentication in mvc4 without using of session variables?

查看:85
本文介绍了如何在不使用会话变量的情况下在mvc4中进行身份验证?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了改善安全目的。我希望在没有使用Session的情况下在我的表单中使用不同的身份验证。所以你可以建议我可以在我的应用程序中使用的身份验证类型。

解决方案

使用认同。如果你在Visual Studio中启动一个新的MVC项目,你可以选择这是一个身份验证类型,你会得到一些示例代码。



http://www.asp.net/identity [ ^ ]


参见,

http://aroosh.in/2013/03/17/forms-authentication-basics/ [ ^ ]

ASP.NET MVC 4表单身份验证自定义 [ ^ ]



-KR

For The Betterment of security purpose. I want to use different authentication in my form without the using of Session.So can you suggest the type of authentication which i can use in my application.

解决方案

Use "Identity". If you start a new MVC project in Visual Studio you can select this is an authentication type and you get some sample code.

http://www.asp.net/identity[^]


See,
http://aroosh.in/2013/03/17/forms-authentication-basics/[^]
ASP.NET MVC 4 Forms Authentication Customized[^]

-KR


这篇关于如何在不使用会话变量的情况下在mvc4中进行身份验证?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆