为什么我用Asp.net 2.0的Login控件,选择了"下次记住我",但是最多半天后就失效了。
配置如下
Windows 2003 Server<authentication mode="Forms">
<forms loginUrl="~/Login.aspx" name=".ESB2BFORMSAUTH" protection="All" timeout="60" />
</authentication>
配置如下
Windows 2003 Server<authentication mode="Forms">
<forms loginUrl="~/Login.aspx" name=".ESB2BFORMSAUTH" protection="All" timeout="60" />
</authentication>
而且也不是完全不能实现,钩选后Cookie会生成,但只能保持登录不到一天的时间,不明白了,不是说50年吗。
<authentication mode="Forms">
<forms loginUrl="~/Login.aspx" name=".ESB2BFORMSAUTH" protection="All" timeout="60" />
</authentication>
和这里的timeout有关系吗?
改成timeout="999999"呢?
http://msdn2.microsoft.com/zh-CN/library/1d3t3c61.aspx