设置会话时间 [英] Set the session time

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

问题描述

大家好,



如何在我的网络应用程序中增加会话时间。我的web.config文件



hi all,

how to increase the session time in my web application. my web.config file

<system.web>
<sessionState mode="InProc" timeout="30" ></sessionState>
</system.web>





在我的本地系统工作正常。染了我的网站。我遇到了问题



,即会议时间仅为5分钟。 5分钟后点击任意按钮重定向到低分页。



如何进入会议时间。请帮帮我



谢谢和问候



in my local system working is fine.after deployed my web site. i got the problem

i.e session time was working only 5mint. after 5mintesam click on any button redirect to lo-gin page.

how to in-cress the session time. please help me

thanks and regards

推荐答案

设置这个

set this in
<system.web>
<customerrors mode="off" />
<httpruntime executiontimeout="900000" maxrequestlength="4096" usefullyqualifiedredirecturl="false" minfreethreads="8" minlocalrequestfreethreads="4" apprequestqueuelimit="100" enableversionheader="true" />
---
----
</system.web>





并设置



and set

debug ="false"

.......您网站的IIS超时......

in web,config, before your publish website.....

and set timeout in your IIS for your website......


在web.config中,您必须设置身份验证超时。



In web.config you must set the authentication timeout.

<sessionState timeout="120"></sessionState>
<authentication mode="Forms">
  <forms name="Authentication" loginUrl="~/FormStart.aspx" protection="All" timeout="120" />
</authentication>


如何增加会话超时 [ ^ ]

sessionState元素 [ ^ ]

How to increase session timeout [^]
sessionState Element[^]
<system.web>
    <authentication mode="Forms">
          <forms timeout="50"/>
    </authentication>

    <sessionState timeout="60"  />
</system.web>


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

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