“记住登录(Remember Me)”功能在DNN 4里面默认的持续时间是1小时,在DNN 4之前设置的是50年。如果想修改持续时间,可以修改web.config文件,修改的地方如下:
<authentication mode="Forms">
<forms name=".DOTNETNUKE" protection="All" timeout="60"/>
</authentication>
如果想修改为7天:
<authentication mode="Forms">
<forms name=".DOTNETNUKE" protection="All" timeout="10080"/>
</authentication>
如果想修改为1年:
<authentication mode="Forms">
<forms name=".DOTNETNUKE" protection="All" timeout="525600"/>
</authentication>
原文:Venexus DotNetNuke Blog - DotNetNuke 4 Persistent Login - Remember me for more than 1 hour!
继续阅读与本文标签相同的文章
上一篇 :
DNN基础知识FAQ(1)
下一篇 :
无尽的爱――开源项目DNN研究心得(转载)
-
如何去除Search Skin ojbect中的"web"和"site"选项按键
2026-05-25栏目: 教程
-
DotNetNuke(DNN)自带弹出日历显示中文的方法
2026-05-25栏目: 教程
-
C# 面试题解析-请遍历页面上所有的TextBox控件并给它赋值为string.Empty
2026-05-25栏目: 教程
-
DNN使用非80端口和总是跳转到http://localhost问题的解决(翻译)
2026-05-25栏目: 教程
-
如何使用DNN中的Calendar控件
2026-05-25栏目: 教程
