为什么我会丢失会话变量值 [英] Why Im losing session variables values
问题描述
在身份验证过程之后,我使用会话变量存储登录标志,以检查用户是否记录,但是在提交或响应.redirect之间的页面之间,脚本会启动用户。
我在每页的顶部使用:
如果会话(已记录)<> "是"然后Response.Redirect(" default.asp")结束如果
但有时会发生这种情况我已经将超时时间设置为2小时并且没有解决问题。谁知道可能是什么?
After the authentication process I stored the login flags using session variables to check when a user its logged or not but between pages doing from submit or response.redirect, the script kicks out the users.
I use on the top of each page:
If Session("logged") <> "Yes" Then Response.Redirect("default.asp") End If
but sometimes this occurs I had put already the timeout to 2 hours and that doesnt fix the problem. Anyone knows what could be?
推荐答案
你的IDE是什么?有些人认为每个页面都是一个独特的站点,这不允许分享会话变量...
Jared
What is your IDE? Some consider each page a distinct site, this doesn''t allow session variables to be shared...
Jared
服务器赢了2003服务器和我使用vbscript ASP 3.0进行编程
the server its win 2003 server and I am programing using vbscript ASP 3.0
服务器的win 2003服务器和我正在使用vbscript ASP 3.0编程
the server its win 2003 server and I am programing using vbscript ASP 3.0
您只是在记事本中输入代码,还是使用某种集成开发环境?
Jared
Are you just just typing your code in notepad, or are you using some integrated development environment?
Jared
这篇关于为什么我会丢失会话变量值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!