[英]Asp.net 3.5 forms authentication timeout
I have this codes in 我有这个代码
<authentication mode="Forms">
<forms loginUrl="/Login" timeout="180" name="__Auth" slidingExpiration="true" />
</authentication>
And Plesk panel Session settings are as below : Authentication mode : Forms Sesion Timeout(minutes) : 180 And this settings automatically adding a line to web.config aas below: Plesk面板的Session设置如下:身份验证模式:Forms Sesion超时(分钟):180此设置自动将一行添加到web.config中,如下所示:
<sessionState timeout="180" />
Everything seems good. 一切似乎都很好。 But session ends too early (about 10 min) I could not find reason.
但是会话结束时间过早(大约10分钟),我找不到原因。
Please include following code in web config in your application. 请在您的应用程序的Web配置中包含以下代码。
<session State timeout="30" mode="In-proc" />
and also check time in 并检查时间
But you remove space in between session state and remove - in In-proc... 但是,您可以在会话状态之间删除空间,然后在进程内删除-
请在您的web.config文件中包含以下代码,然后尝试。
<httpRuntime maxRequestLength="102400" executionTimeout="3600"/></httpRuntime>.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.