紧急:奇怪的Cookie问题!生产应用程序失败! [英] URGENT: Strange Cookie Problem! Production App is Failing!

查看:55
本文介绍了紧急:奇怪的Cookie问题!生产应用程序失败!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生们,您需要紧急帮助解决STRANGE问题。


我有两台服务器,一个开发箱和一个生产箱。在开发盒上

一切正常,在生产中它的软管:


用户可以做的一件事就是点击更改区域。链接将

它们带到世界地图上。然后他们可以选择四个区域中的一个。


当他们选择一个区域时,它会将它们带到一个读取变量的页面然后设置一个cookie,然后设置一个cookie。然后在整个网站上引用。


喜欢:cds.asp?r = 0(0,1,2,3是有效的价值)


现在我不是要求你调试代码,因为我没有任何关系

这就是为什么:


DEV BOX运行:

- 默认FTP(所有IP)

- 默认SMTP(所有IP)

- 默认NNTP(全部IPs)

- 默认Web服务器(IP-1:80)

- 新的Web服务器(IP-2:80)

- 新的Web服务器 - 后门(IP-1:88)

* IP-1和IP-2被分配到同一个网卡,没有第二个

网卡。


所有三个Web服务器都指向同一个物理目录。 (

的原因是无关紧要的,但是如果你必须知道它是因为我们正在使用

安全ISAPI过滤器,它会破坏Front Page Extensions。所以第二个

IP允许FP连接,后门允许脚本运行)


如果我点击默认Web服务器,cookie会更新,所有内容

变好了。

如果我点击New Web Server - Back Door或新Web服务器或cookie出现

来更新页面上的工作(我通过打印

变量和request.cookie进行检查)但是不是任何其他页面

引用它。


我的生产服务器设置方式大致相同。

Gentlemen, your urgent help is needed in solving a STRANGE problem.

I have two servers a dev box, and a production box. On the dev box
everything works fine, in production it hoses:

One of the things a user can do is click a "Change region" link which takes
them to a map of the world. They can then select one of four regions.

When they select a region it takes them to a page which reads a variable and
then sets a cookie which is then referenced throughout the site.

like: cds.asp?r=0 (0,1,2,3 are the valid valies)

NOW I''m not asking you to debug code, as I am POSITIVE it has nothing to do
with that and here''s why:

DEV BOX Running:
- Default FTP (All IPs)
- Default SMTP (All IPs)
- Default NNTP (All IPs)
- Default Web Server (IP-1:80)
- New Web Server (IP-2:80)
- New Web Server - Back Door (IP-1:88)
* IP-1 and IP-2 are assigned to the same network card, there is no second
NIC.

All three web servers are pointing at the same physical directory. (The
reason is irrelevant, but if you must know it''s because we''re using a
security ISAPI filter which screws up Front Page Extensions. SO the second
IP allows FP to connect and the back door allows a script to run)

If I hit the Default Web Server the cookies are updated and everything
changes fine.
If I hit "New Web Server - Back Door" or "New Web Server" the cookie appears
to get updated on the page doing the work (I checked by printing both the
variable and the request.cookie) but then is not for any other pages
referencing it.

My Production server is set up in much the same way.

推荐答案

PS - 服务器正在运行NT 4.0
PS - The servers are running NT 4.0


是否有任何机器名称中有下划线?对于其他

的可能性,请参见
http:// www。 aspfaq.com/2157


-

Aaron Bertrand

SQL Server MVP
http://www.aspfaq.com/

>
" Tony Archer" < me@_N05PAM_tonyarcher.com>在消息中写道

新闻:ef ************** @ TK2MSFTNGP11.phx.gbl ...
Do any of the machines have underscores in their name? For other
possibilities see
http://www.aspfaq.com/2157

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Tony Archer" <me@_N05PAM_tonyarcher.com> wrote in message
news:ef**************@TK2MSFTNGP11.phx.gbl...
先生们,您的紧急帮助解决一个STRANGE问题需要。

我有两个服务器开发盒和一个生产盒。在开发盒上
一切正常,在生产中它的软管:

用户可以做的一件事就是点击更改区域。
将他们带到世界地图的链接。然后,他们可以选择四个区域中的一个。

当他们选择一个区域时,它会将它们带到一个读取变量
的页面,然后设置一个cookie,然后在整个站点中引用它。 br />
喜欢:cds.asp?r = 0(0,1,2,3是有效的valies)

现在我不是要你调试代码,因为我很积极它没有什么可以用
做的,这就是为什么:

DEV BOX运行:
- 默认FTP(所有IP)
- 默认SMTP(所有IP)
- 默认NNTP(所有IP)
- 默认Web服务器(IP-1:80)
- 新Web服务器(IP-2:80)
- 新的Web服务器 - 后门(IP-1:88)
* IP-1和IP-2被分配到同一个网卡,没有第二个
网卡。
原因是无关紧要的,但是如果你必须知道它是因为我们正在使用
安全ISAPI过滤器来破坏Front Page Extensions。那么
秒的IP允许FP连接和后门允许脚本运行)

如果我点击默认Web服务器,cookie会更新,一切都会变好。
如果我点击新 Web服务器 - 后门或新Web服务器或cookie
似乎在进行工作的页面上得到更新(我通过打印
变量和request.cookie来检查)但是然后不是任何其他页面引用它。

我的生产服务器的设置方式大致相同。
Gentlemen, your urgent help is needed in solving a STRANGE problem.

I have two servers a dev box, and a production box. On the dev box
everything works fine, in production it hoses:

One of the things a user can do is click a "Change region" link which takes them to a map of the world. They can then select one of four regions.

When they select a region it takes them to a page which reads a variable and then sets a cookie which is then referenced throughout the site.

like: cds.asp?r=0 (0,1,2,3 are the valid valies)

NOW I''m not asking you to debug code, as I am POSITIVE it has nothing to do with that and here''s why:

DEV BOX Running:
- Default FTP (All IPs)
- Default SMTP (All IPs)
- Default NNTP (All IPs)
- Default Web Server (IP-1:80)
- New Web Server (IP-2:80)
- New Web Server - Back Door (IP-1:88)
* IP-1 and IP-2 are assigned to the same network card, there is no second
NIC.

All three web servers are pointing at the same physical directory. (The
reason is irrelevant, but if you must know it''s because we''re using a
security ISAPI filter which screws up Front Page Extensions. SO the second IP allows FP to connect and the back door allows a script to run)

If I hit the Default Web Server the cookies are updated and everything
changes fine.
If I hit "New Web Server - Back Door" or "New Web Server" the cookie appears to get updated on the page doing the work (I checked by printing both the
variable and the request.cookie) but then is not for any other pages
referencing it.

My Production server is set up in much the same way.



Nope。这只是一个使用的cookie。被称为CDSRegion


这是代码。但是又一次。如果我使用

默认Web服务器浏览网站,它可以正常工作,但是如果我从不同的IP或

端口点击SAME文件则不行。


<%Response.Buffer = TRUE%>

<%

Dim sFullPageLink


CDS_Region = Request.QueryString(" r")


IF CDS_Region =""那么

CDS_Region = Request.Cookies(" CDSRegion")

ELSE

Response.Cookies(" CDSRegion")= CDS_Region

Response.Cookies(" CDSRegion")。Expires = DateAdd(" m",1,Date)

END IF

%>


其他页面然后尝试:


CDS_Region = Request.Cookies(" CDSRegion")


Aaron Bertrand - MVP < AA *** @ TRASHaspfaq.com>在消息中写道

news:eh ************** @ tk2msftngp13.phx.gbl ...
Nope. It''s just one cookie being used. Called "CDSRegion"

Here is the code. But again. It works fine if I browse the site using the
default web server, but NOT if I hit the SAME files from a different IP or
port.

<% Response.Buffer = TRUE %>
<%
Dim sFullPageLink

CDS_Region = Request.QueryString("r")

IF CDS_Region = "" THEN
CDS_Region = Request.Cookies("CDSRegion")
ELSE
Response.Cookies("CDSRegion") = CDS_Region
Response.Cookies("CDSRegion").Expires = DateAdd("m", 1, Date)
END IF
%>

Other pages then try to:

CDS_Region = Request.Cookies("CDSRegion")

"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:eh**************@tk2msftngp13.phx.gbl...
做任何一台机器在他们的名字中有下划线?有关其他可能性,请参阅
http://www.aspfaq.com/ 2157

- Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
Do any of the machines have underscores in their name? For other
possibilities see
http://www.aspfaq.com/2157

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/



这篇关于紧急:奇怪的Cookie问题!生产应用程序失败!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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