W2K8 WinInet Cookie管理问题 [英] W2K8 WinInet Cookie Management Issue
问题描述
我们现有的Windows服务应用程序中的以下代码始终在W2K3服务器上正常工作(即两个函数的返回值均为1): InternetSetCookieEx("http://cp-tst.aaaaa:4080 / Demo / Login.asp",NULL, cookie_data ,0,NULL);
InternetGetCookieEx("http://cp-tst.aaaaa:4080 / Demo / Welcome.asp", NULL, cookie_data , data_size ,0,NULL);
请注意,它是一个会话cookie并且路径设置为"/ Demo"。
但是,在W2K8服务器上只有SetCookie功能成功。 GetCookie函数失败,错误"没有更多数据可用。"。
我们已经尝试更改函数中的一些标志值,将"cp-test"放在"本地Intranet"中区域并调整了服务器上的隐私设置,以防万一有任何影响(无法理解为什么)。 没有快乐。
有什么想法吗?
嗨中心点,
我希望您使用的是Windows Essential Business Server 2008.它看起来存在一些问题InternetGetCookieEx,请参阅知识库文章 http://support.microsoft.com/kb/933869 。
我希望它有所帮助。
谢谢,
Shruti 跨度> 跨度> 跨度>
The following code in our existing Windows Service application always works as expected on W2K3 server (ie return values from both functions is 1): InternetSetCookieEx("http://cp-tst.aaaaa:4080/Demo/Login.asp", NULL, cookie_data, 0, NULL);
InternetGetCookieEx("http://cp-tst.aaaaa:4080/Demo/Welcome.asp", NULL, cookie_data, data_size, 0, NULL);
Note that it is a session cookie and that the path is set to "/Demo".
However, on W2K8 server only the SetCookie function succeeds. The GetCookie function fails with the error "No more data is available.".
We've tried changing some of the flag values in the function, put "cp-test" in the "local Intranet" zone and also adjusted the privacy settings on the server just in case any of these had a bearing (can't see why they should). No joy.
Any ideas please?
Hi Centrepoint,
I hope you are using Windows Essential Business Server 2008. It looks there’s some issue with InternetGetCookieEx, please refer to the KB article http://support.microsoft.com/kb/933869.
I hope it helps.
Thanks,
Shruti
这篇关于W2K8 WinInet Cookie管理问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!