请记住ASP.NET MVC5中的表单身份验证功能。 [英] Remember me functionality with Forms Authentication in ASP.NET MVC5.

查看:71
本文介绍了请记住ASP.NET MVC5中的表单身份验证功能。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All,



我是ASP.NET MVC中的新人,并且分配了一个任务,我必须创建一个登录表单并记住我的选项。我已经使用验证和所有创建了登录表单功能。



但是当我要创建记住我的功能时,我很困惑,因为我必须创建它,就像我我登录第一次检查记住我会登录(没有注销,直接浏览器关闭),当我第二次登录时,它必须直接登录我。(不需要密码)。



所以请任何人给我代码片段或演示项目,因为我已经搜索了很多并找到了不同类型的方法,但又一次混淆了。



谢谢

解决方案

参考:



< a href =http://www.codeproject.com/Articles/682113/Extending-Identity-Accounts-and-Implementing-Rol>扩展身份帐户并在ASP.NET MVC 5中实现基于角色的身份验证 [ ^ ]

ASP.NET MVC中的自定义身份验证和授权 [ ^ ]



祝你好运。

Hello All,

I am the new one in ASP.NET MVC, and assigned with a task that I have to create a login form with remember me option. I have created the login form functionality with validation and all.

But when I am going to create remember me functionality I was confused because I have to create it like when I am login first time with check on remember me it will logged in(no logout, direct browser closed) and when I am coming to login for second time it has to do direct login for me.(No need of password).

So please can any one give me the code snippet or demo project for this, because I have searched a lot and find the different type of ways, but again confused.

Thanks

解决方案

Refer :

Extending Identity Accounts and Implementing Role-Based Authentication in ASP.NET MVC 5[^]
Custom Authentication and Authorization in ASP.NET MVC[^]

Good luck.


这篇关于请记住ASP.NET MVC5中的表单身份验证功能。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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