请教一个关于cookie的问题
ds345 2018-11-16 03:06:27 我用的是腾讯云的服务器,最近遇到一个很棘手的问题,一直解决不了,请各位大牛帮我一下
服务器其中有四个文件,大家可以下载下来:http://new.myoes.cn/new.zip
其中cookie.asp 为设置cookie
getcookie.asp 为是判断是否获取到了cookie
在index.asp中,首先通过
url="http://new.myoes.cn/cookie.asp"
if isobjinstalled("asphttp.conn")=true then
strs= getasphttppage(url)
else
strs= gethttppage(url)
end if
设置cookie,然后再通过
urls="http://new.myoes.cn/getcookie.asp"
if isobjinstalled("asphttp.conn")=true then
str= getasphttppage(urls)
else
str= gethttppage(urls)
end if
检测是否获取到cookie,如果获取到了,则显示“已获取到cookie”;否则,则显示“未获取到cookie”
现在的问题是,通过服务器上的http://new.myoes.cn/index.asp 来获取,则显示“未获取到cookie”,如果把index.asp 和cha.asp 下载到本地,在本地打开index.asp, 页面显示“已获取到cookie”。
是不是我服务器上的iis设置有问题还是权限有问题?
请帮忙解决!万分感谢!