我在asp.net网络表单中的会话消失了.. [英] My session in asp.net web forms disappear..
本文介绍了我在asp.net网络表单中的会话消失了..的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨。
我正在开发asp.new web forms c#project。在会话消失的页面上多次刷新后,我遇到了会话问题。可能是什么问题?
谢谢
Hi.
I am working on asp.new web forms c# project. i have problem with the session after several refreshes on the page the session disappear. what can be the problem?
thanks
推荐答案
1)
你可以在master page / deafult页面查看如果任何会话值丢失,则重定向到主页Page
2)检查页面加载本身是否有任何会话值丢失
3)你可以使用以下选项:
复制代码制作虚拟webform,在querystring中传递Session变量:检查...
如果需要,使用ViewState变量!
使用Request.Forms变量
4)解决cookie,会话超时prbms(如果有的话)
5)进行全面测试,看看他们的逻辑是否有任何错误
1) you can check in master page/deafult page that if any session values is lost then redirect to home Page
2)check if any session value is lost in Page load itself
3)You can use following options:
Copy Code make a dummy webform,pass Session variable in querystring :to check...
use ViewState variable, if required!
use Request.Forms variable
4)Solve cookies,Session time-out prbms if any
5)Do thorough testing and see if their is any mistake in logic itself
这篇关于我在asp.net网络表单中的会话消失了..的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文