避免会话清除 [英] Avoid Session clear

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

问题描述

[当会话为null时,默认情况下,我们将定向到主页.]

首先,当我们登录并执行交易时,我们将会话值从一页转移到第二页.在第二页,如果我们闲置了一段时间,会话自动清除.这使我们回到首页.


我们在web.config文件中包含了以下代码,但仍然遇到相同的问题.

< system.web>
< sessionstate timeout ="1000">

[when the session is null we are by default directed to home page.]

At first when we login and perform transactions we carry the session values from one page to second page.At this second page if we remain idle for some time, the session automatically clears off. This causes us to reach back to home page . How to avoid this?

We have included the following code in the web.config file,but still we are having the same problem.

<system.web>
<sessionstate timeout="1000">

推荐答案

deepthy.pm写道:
deepthy.p.m wrote:

遵循web.config中的代码

following code in the web.config


是什么?

我猜按设计的行为.您的会话可能正在超时.
请阅读 ^ ]
还有更多:

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

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