如何防止IIS7丢弃我的cookie?

时间:2022-09-25 12:36:19

I'm using Windows Vista x64 with SP1, and I'm developing an ASP.NET app with IIS7 as the web server. I've got a problem where my cookies aren't "sticking" to the session, so I had a Google and found that there was a known issue with duplicate response headers overwriting instead of being added to the session. This problem was, however, supposed to have been fixed in Service Pack 1 for Vista.

我正在使用带有SP1的Windows Vista x64,我正在开发一个IIS7作为Web服务器的ASP.NET应用程序。我有一个问题,我的cookie没有“坚持”到会话,所以我有一个谷歌,发现有一个已知问题,重复响应标头覆盖而不是添加到会话。但是,这个问题应该已经在Vista的Service Pack 1中得到修复。

Any ideas as to what my trouble might be?

关于我的麻烦可能是什么的任何想法?


I'm using an Integrated app pool, and the max number of worker processes == 1.

我正在使用集成应用程序池,并且最大工作进程数== 1。

What's the significance of the underscore? Does it matter where in the URL it is (e.g. it matters if it's in the host name, but not if it's in the query string)?

下划线的意义是什么?它在URL中的位置是否重要(例如,它是否在主机名中,但如果它在查询字符串中则不重要)?

1 个解决方案

#1


4  

Just a thought, have you got an underscore in the url. e.g. http://my_site ?

只是一个想法,你在网址中有一个下划线。例如http:// my_site?

And one other thing, you're not running the app pool in web garden mode? i.e. Process Model -> Maximum Worker Processes: > 1

还有一件事,你没有在网络花园模式下运行应用程序池?即流程模型 - >最大工人流程:> 1

What type of app pool are you using - Integrated or Classic mode ?

您使用的是哪种类型的应用程序池 - 集成模式还是经典模式?

#1


4  

Just a thought, have you got an underscore in the url. e.g. http://my_site ?

只是一个想法,你在网址中有一个下划线。例如http:// my_site?

And one other thing, you're not running the app pool in web garden mode? i.e. Process Model -> Maximum Worker Processes: > 1

还有一件事,你没有在网络花园模式下运行应用程序池?即流程模型 - >最大工人流程:> 1

What type of app pool are you using - Integrated or Classic mode ?

您使用的是哪种类型的应用程序池 - 集成模式还是经典模式?