如何增加我的网站的会话时间 [英] How to increase session time in my Website

查看:96
本文介绍了如何增加我的网站的会话时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在webconfig中使用以下代码但没有用,



sessionstate mode =InProccookieless =truetimeout =1440





和。,



Gobal.asax代码



  void  Session_Start( object  sender,EventArgs e)
{
// 新会话启动时运行的代码
Session.Timeout = 1440 ;
}







我的网站中的代码但不工作,



任何人给出正确的解决方案!

解决方案

可能这些链接可以帮助你





http://asp-net.vexedlogic.com/2012/05/23/aspasp-net-session-timeout-how-do-i-change-it/



http://msdn.microsoft.com/en-us/library/system.web.sessionstate.httpsessionstate.timeout%28v=vs.110%29.aspx



http://technet.microsoft .com / zh-CN / library / cc725820%28v = ws.10%29.aspx



http://community.landesk.com/support/docs / DOC-22585



http://www.aspdotnet-suresh.com/2010/10/session-timeout-problem-in-aspnet.html

I'm Using Following code in webconfig but No use ,

sessionstate mode="InProc" cookieless="true" timeout="1440"


And .,

Code at Gobal.asax

void Session_Start(object sender, EventArgs e)
  {
      // Code that runs when a new session is started
      Session.Timeout = 1440;
  }




both code in My site but Not work ,

Anyone Give Right Solution !

解决方案

May be these links help you


http://asp-net.vexedlogic.com/2012/05/23/aspasp-net-session-timeout-how-do-i-change-it/

http://msdn.microsoft.com/en-us/library/system.web.sessionstate.httpsessionstate.timeout%28v=vs.110%29.aspx

http://technet.microsoft.com/en-us/library/cc725820%28v=ws.10%29.aspx

http://community.landesk.com/support/docs/DOC-22585

http://www.aspdotnet-suresh.com/2010/10/session-timeout-problem-in-aspnet.html


这篇关于如何增加我的网站的会话时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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