在一个asp.net web应用了rememberMe选项 [英] RememberMe option in an asp.net web application

查看:142
本文介绍了在一个asp.net web应用了rememberMe选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  • 什么是实现记得我在一个asp.net web应用程序选项的可能途径?

推荐答案

如果您在使用窗体身份验证,只是通过真正作为第二个参数的 RedirectFromLoginPage

If you're using Forms Authentication, just pass true as a second argument to RedirectFromLoginPage.

否则,想法基本上是一样的:你需要创建一个所谓的永久性的Cookie ,这意味着你必须指定正确的cookie的过期日期。

Otherwise, idea is essentially the same: you need to create a so-called "persistent cookie", which means that you have to specify correct cookie expiration date.

这篇关于在一个asp.net web应用了rememberMe选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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