会话状态不起作用 [英] Session State is not working

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

问题描述

我已经在下面的web.config文件中编写了代码

I have written code following bellow in web.config file

<system.web>
<sessionstate timeout="30000" />
</system.web>



但是一分钟的会议后,我超时了.我很担心,请有人帮我解决问题

谢谢与问候

凯拉什·钱德拉·贝赫拉(Kailash Chandra Behera)
Yesha IT解决方案列兵. Ltd



But after one minute session i getting time out. i am getting worry, please some one help me and set my problem out

Thanks and Regards

Kailash Chandra Behera
Yesha IT Solutions Pvt. Ltd

推荐答案

在此处开始 [ ^ ].


Asp.Net应用程序的默认SessionState模式为" inproc ".

会话状态管理的此模式与经典ASP状态管理"相同,后者在同一Web服务器/机器上的运行进程中维护会话状态.每当IIS回收此过程时,您的Web应用程序就会失去其会话状态信息/数据.

请查看下面的链接,以获取有关此信息的更多信息.
http://blogs.iis.net/webtopics/存档/2009/07/21/in-proc-session-state-management.aspx

有关" ASP.NET会话状态"的更多信息,请参见此.
http://msdn.microsoft.com/en-us/library/ms972429.aspx
Default SessionState mode of Asp.Net application is "inproc".

This mode of session state management is as same as Classic Asp State Management, where session state gets maintained in the running process on the same Web Server/Machine. Whenever this process gets recycled by IIS, your web application looses it''s session state information/data.

Have a look at below link, for more information on this.
http://blogs.iis.net/webtopics/archive/2009/07/21/in-proc-session-state-management.aspx

For more information on "ASP.NET Session State" refer this.
http://msdn.microsoft.com/en-us/library/ms972429.aspx


默认情况下,会话超时为20微秒,这也清除了您的一件事,即您不能将会话超时设置为一年以上意味着超过525,600

有关会话超时的更多信息,请继续阅读..

http://msdn.microsoft.com/en-us/library/system.web.sessionstate.httpsessionstate.timeout.aspx [ ^ ]

http://stackoverflow.com/questions/648992/session-timeout-in-asp-net [ ^ ]
By Default session time out is 20 minits and also cleare one thing in your mind that you can not set session time out more then one year means more then 525,600

For more detail of any thing about session timeout please read this on..

http://msdn.microsoft.com/en-us/library/system.web.sessionstate.httpsessionstate.timeout.aspx[^]

http://stackoverflow.com/questions/648992/session-timeout-in-asp-net[^]


这篇关于会话状态不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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