严重的问题 - 失去的会话变量 [英] Serious Problem - Lost Session Variables

查看:66
本文介绍了严重的问题 - 失去的会话变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮助.....!


我已经建立了一个在我的测试服务器上工作/工作完全正常的网站。

当我转移时它是一个远程网络主机(网站的预定永久性住宅),我的网站上发生了一些非常令人担忧的事情。

我使用的是
,因为它是规范,会话变量来存储登录信息。在每页的

顶部,我检查Session(isLoggedIn)=True,如果

不是,那么系统会将它们记录下来。


严重的问题是,一旦您登录该网站,您尝试打开它的下一个

页面将无法通过上述检查并将您注销!显然

会话(isLoggedIn)不等于真。所以它假设你没有记录

in。所以基本上会话变量丢失/清除。


这使我的网站无法使用,并且除非我能得到一个

的解决方案。


任何想法?任何帮助都将非常非常感激。

Please help.....!

I have built a site that works/worked absolutely fine on my test server.
When I transferred it to a remote web host (the intended permanent home of
the site) something very worrying keeps happening to my site.

I use, as is the norm, session variables to store login information. At the
top of each page I do a check that Session("isLoggedIn") = "True", and if
not then the system logs them back out.

The serious problem is that once you have logged into the site, the next
page you try to open it fails the above check and logs you out! Obviously
Session("isLoggedIn") is not equal to "True" so it assumes you aren''t logged
in. So basically the session variables are getting lost/cleared.

This makes my site unusable, and is a disaster for it unless I can get a
solution.

Any ideas? Any help will be very, very appreciated.

推荐答案

>严重的问题是,一旦您登录该站点,您尝试打开它的下一个
> The serious problem is that once you have logged into the site, the next
页面将无法通过上述检查并将您注销!显然,会话(isLoggedIn)不等于真。所以它假设你没有
登录。所以基本上会话变量都会丢失/清除。
page you try to open it fails the above check and logs you out! Obviously
Session("isLoggedIn") is not equal to "True" so it assumes you aren''t logged in. So basically the session variables are getting lost/cleared.



www.aspfaq.com/2157


(microsoft.public.inetserver.asp.db已删除来自x-post list)



www.aspfaq.com/2157

(microsoft.public.inetserver.asp.db removed from x-post list)


欢迎来到精彩的会议世界,感谢IE和各种安全

功能

>
" frank" < FR ***** @ frankie.com>在消息中写道

news:e6 ************** @ TK2MSFTNGP11.phx.gbl ...
welcome to the wonderful world of sessions thanks to IE and various security
features

"frank" <fr*****@frankie.com> wrote in message
news:e6**************@TK2MSFTNGP11.phx.gbl...
" Aaron Bertrand - MVP" < AA *** @ TRASHaspfaq.com>在消息中写道
新闻:eV ************** @ TK2MSFTNGP12.phx.gbl ...
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:eV**************@TK2MSFTNGP12.phx.gbl...
严重的问题是,一旦你登录到网站,你尝试打开它的
下一页就不能通过上述检查并将你注销!显然,Session(isLoggedIn)不等于True。所以它假设你没有记录
The serious problem is that once you have logged into the site, the next page you try to open it fails the above check and logs you out! Obviously Session("isLoggedIn") is not equal to "True" so it assumes you aren''t logged
in。所以基本上会话变量丢失/清除。
in. So basically the session variables are getting lost/cleared.



www.aspfaq.com/2157



该页面有一些有趣的建议,但对我来说奇怪的是,当我在我的测试服务器上运行时,我*从未*遇到过这个问题...只有我的



That page has a few interesting suggestions, but the weird thing for me is
that I *never* had this problem when it ran on my test server... only my



新的远程主机(DiscountASP。净)。它与已被复制的代码完全相同 - 它在某些客户端浏览器上查看时也有效,但在其他浏览器上查看时却无效。

这是一场噩梦...... br />


new remote host (DiscountASP.NET). It''s the same code that has been copied
over - it also works when viewed on some client browsers, but not others.

It''s a nightmare.....



>远程主机(DiscountASP.NET)。这是与已经复制的
> remote host (DiscountASP.NET). It''s the same code that has been copied
相同的代码 - 它在某些客户端浏览器上查看时也有效,但在其他浏览器上查看时却无效。
over - it also works when viewed on some client browsers, but not others.




我不认为这与代码有什么关系,因为它的价值。



I don''t think this has anything to do with code, for what it''s worth.


这篇关于严重的问题 - 失去的会话变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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