设置登录时间(会员资格和授权) [英] Set Timing of Login(Membership And Authorization)
本文介绍了设置登录时间(会员资格和授权)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何设置登录时间.例如,我希望用户在一段时间内登录网站.
how to setting timing of login.for example I want a user login to website in a peroid of time.
推荐答案
您可以在以下位置使用成员资格提供程序类您的应用程序,并向您添加以下代码web.config
you can use the membership provider class in your application and add the following code to you web.config
<authentication mode="Forms">
<forms loginUrl="Login.aspx"
protection="All"
timeout="30"
name="AppNameCookie"
path="/FormsAuth"
requireSSL="false"
slidingExpiration="true"
defaultUrl="default.aspx"
cookieless="UseCookies"
enableCrossAppRedirects="false" />
</authentication>
这里的超时期限将设置您的登录持续时间.
让我知道您是否还有其他需要.
here timeout period willset your login duration.
Let me know if you need anything else regarding it.
这篇关于设置登录时间(会员资格和授权)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文