SQLServer模式下的会话超时问题

时间:2014-10-20 07:46:21

标签: asp.net sql-server sitecore session-timeout sitecore7.2

我面临着奇怪的Session Timeout问题。 我在SQLServer中使用的模式,并将超时值设置为20分钟(会话和cookie超时值),但我的会话在2分钟内到期。 当我在ASPStateTempSessions中的SQL Server ASPState表中检查会话值时, 超时值设置为1分钟。 除了web.config之外,此值的设置是什么?我也验证了machin.config,但没有找到任何超时值。

配置值:

sessionState cookieless="UseCookies" mode="SQLServer" sqlCommandTimeout="600" 
sqlConnectionString="server=servername;user id=abcd;password=****" timeout="10"

这在我的测试环境中工作正常,但是同一个配置在其他服务器(暂存)中不起作用,此处超时值设置为1.

如果您有任何意见,请告诉我。 提前谢谢。

-Sharath

1 个答案:

答案 0 :(得分:0)

添加web.config文件此代码

<sessionstate timeout="15"></sessionstate>

添加此代码的特定页面

<authentication mode="Forms">
      <forms loginUrl="~/Demo/Demo.aspx" timeout="2880"/>
</authentication>