会话请求超时问题。 [英] Session Request Time Out Problem.

查看:99
本文介绍了会话请求超时问题。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Frds我想解决会话请求超时问题。因为我想要能够维持会话的代码,这意味着我的会话永远不会超时。总是像gmail一样生活。

解决方案

在web.config中



 <   httpruntime     executiontimeout   =  360000    /  >  


 <   system.web  >  <   httpruntime     executiontimeout   =  360000     /  >  <   / system.web  >  


HI



你可以配置为1年的最长时间。



它可以用两种方式完成


$ b代码中的$ b

 Session.Timeout =  525600 ; 




配置文件中的


 <  配置 >  
< system.web >
< sessionstate timeout = 525600 / >
< / system.web >
< / configuration >





参考: http://msdn.microsoft.com/en-us/library/system.web.sessionstate.httpsessionstate.timeout(v = vs.110).aspx [ ^ ]


Hello Frds I want to Solve Session Request time out Problem. for that i want code that can maintain session that means my session never time out. always live like a gmail.

解决方案

In web.config

<httpruntime executiontimeout="360000" />


<system.web><httpruntime executiontimeout="360000" /></system.web>


HI

you can configure to maximum time as 1 year.

It can be accomplished in two ways

in code as

Session.Timeout = 525600;



in config file as

<configuration>
  <system.web>
    <sessionstate timeout="525600" />
  </system.web>
</configuration>



Reference : http://msdn.microsoft.com/en-us/library/system.web.sessionstate.httpsessionstate.timeout(v=vs.110).aspx[^]


这篇关于会话请求超时问题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆