ASP会话变量丢失 [英] ASP session variable lost

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

问题描述

在PageA.asp我设置会话变量像这样

On PageA.asp I set a session variable like so

Session("affiliate") = "xyz.com"

当我点击一个链接,去PageB.asp的会话变量不再存在。

When I click a link and go to PageB.asp that session variable no longer exists.

我还有其他的会话变量,它们在整个页面仍然存在。我在的Response.Write我PageA.asp届varriable,所以我知道它被正确地创建。

I have other session variables and they persist across the pages. I can response.write my session varriable on PageA.asp, so I know it gets created properly.

我有这个问题几个月前。我想通了以后,之间的某个时候,然后现在我得到了修复覆盖。现在,我在一个总损失。

I had this problem a few months back. I figured it out then, sometime between now and then my fix got overwritten. Now, I'm at a total loss.

先谢谢了。

推荐答案

不管我做什么,会话变量是迷路上response.redirects。最后我用一个cookie。

No matter what I did, the session variable was getting lost on response.redirects. I ended up using a cookie.

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

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