Asp.net ASPXAUTH先生这么快就来了

Asp.net ASPXAUTH先生这么快就来了,asp.net,.aspxauth,Asp.net,.aspxauth,我在根目录的web.config上有这些 <authentication mode="Forms"> <forms loginUrl="Login.aspx" protection="All" timeout="60" name=".ASPXAUTH" path="/" requireSSL="false" slidingExpiration="true" defaultUrl=

我在根目录的web.config上有这些

<authentication mode="Forms">
<forms loginUrl="Login.aspx"
       protection="All"
       timeout="60"
       name=".ASPXAUTH" 
       path="/"
       requireSSL="false"
       slidingExpiration="true"
       defaultUrl="default.aspx"
       cookieless="UseDeviceProfile"
       enableCrossAppRedirects="false" />
</authentication>

但是,ASPXAUTH这么快就出局了(我猜是5分钟)


可能的原因是什么?

通常是因为您重建了解决方案。web服务器重新启动并重新生成
machineKey

因此,由previous
machineKey
加密和签名的cookie无效

这就是你被迫注销的原因

这是给你的一个快速的。

您真的应该详细说明一下“这么快”,不过,您的cookie很可能会在浏览器上被清除。