下次记得我在asp.net的登录控制中 [英] Remember me next time in login control in asp.net
本文介绍了下次记得我在asp.net的登录控制中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在我的应用程序中使用asp.net登录控件.如果有人想选中该控件中的复选框下次记住我".那么我想允许他不用在应用程序中输入密码. br/>
任何帮助,
Hi,
i want to make use of asp.net login control in my application .if anyone wants check the check box placed in that control for "remember me next time".Then i want to allow him with out typing his password into the application.
any help,
推荐答案
将RememberMeSet属性设置为true
set the RememberMeSet property to true
<asp:Login RememberMeSet="True|False" />
如果浏览器支持(并且用户想要)登录名和密码,则会在登录屏幕上记住该用户名和密码.
通过记住我"来在客户端中设置cookie的方式是,下次用户浏览该页面时,它将自动登录.
The user and password will be remembered on the login screen if the browser supports (and the user wants) it.
What "Remember Me" does it to set a cookie in the client so, next time the user browses the page, it''s automatically logged in.
<authentication mode="Forms">
<forms cookieless="UseCookies" timeout="525600" />
</authentication>
请参阅:
http://www.dotnetfunda.com/tutorials/controls/login.aspx [ ^ ]
Refer this:
http://www.dotnetfunda.com/tutorials/controls/login.aspx[^]
这篇关于下次记得我在asp.net的登录控制中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文