避免会话清除
问题描述:
[当会话为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">