本文介绍了在会议概念中需要您的帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在开发一个应用程序,其中有5个会话变量在整个应用程序中持续存在,并且每5分钟就会超时.但是在特定页面中,我将一个excel上载到数据库,这可能需要20到30分钟.因此,这些会话变量在此期间会超时.我需要一些解决方案来仅增加特定上传表单的会话时间.请提出宝贵的建议以实现此目标.


谢谢,
Harsha

Hi every one,

I am developing an application in which there are 5 session variables persists through out the application and they will be timed out for every 5 minuted.But in a particular page i am uploading an excel to database, this may take about 20-30 minutes.So these session variables are getting timed out in the mean while.I need some solution to increase the session time only that particular upload form.Please give your valuable suggestions to achieve this.


Thanks,
Harsha

推荐答案

Session.Timeout = 60;


这是我发现的关于此的线程:
http://stackoverflow.com/questions/763541/set-long-timeout- for-selected-session-variable [ ^ ]
以及有关该属性的MSDN文章:
http://msdn.microsoft.com/en-us/library/system.web.sessionstate.httpsessionstate.timeout.aspx [ ^ ].

希望这会有所帮助.


致以诚挚的问候,祝您编程愉快,
克里斯


Here is the thread I found about this:
http://stackoverflow.com/questions/763541/set-long-timeout-for-selected-session-variable[^]
And the MSDN article about the property:
http://msdn.microsoft.com/en-us/library/system.web.sessionstate.httpsessionstate.timeout.aspx[^].

Hope this helps.


Best regards and happy coding,
Chris


这篇关于在会议概念中需要您的帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-07 03:28