Web应用程序的会话超时 [英] Session Time Out of Web application

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

问题描述

你好,

我正在使用C#在asp.net中开发Web应用程序,其中
我正在button_click.
上设置会话 一段时间(大约20-30秒)后,我单击了链接中的任何一个.
我的会话丢失了,我在下一页上没有得到与该会话相关的数据
我的web.config中的会话超时为20,我也增加了超时,但仍然会造成问题.
[在localhost上工作正常,但是在服务器上上传后会产生问题]

请回复我这非常紧急.

在此先感谢您.

hello,

I am developing web application in asp.net with c# in which
I am setting session on button_click.
after some time(hardly 20-30 second) I click any one of link.
my session is lost and I am not getting data related to that session on next page
session timeout is 20 in my web.config I have also increase timeout but still it creating problem.
[ it works fine on localhost but after uploading on server it creates problem ]

Please reply me it is very urgent.

thanks in advance.

推荐答案

您可以在Web应用程序的Web配置文件中设置会话生存期

请参考此链接

http://msdn.microsoft.com/en-us/library/system.web.sessionstate.httpsessionstate.timeout.aspx [ ^ ]
you can set session lifetime in the web config file of your web application

Please refer this link

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


这篇关于Web应用程序的会话超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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