开发者

Cookie: ASP.NET SessionId Issue

开发者 https://www.devze.com 2022-12-13 17:25 出处:网络
I have a load generator that appends a ASP.NET_SessionId to the Cookie when makin开发者_Python百科g a Soap test call from Machine A to Machine B.

I have a load generator that appends a ASP.NET_SessionId to the Cookie when makin开发者_Python百科g a Soap test call from Machine A to Machine B.

Cookie: ASP.NET_SessionId=gf0ouay24sdneiuicpiggn45;

However, when I'm running the soap test hitting my local server it doesn't have an ASP.NET_Session variable in the cookie.

Why is this happening?

UPDATE:

I'm getting this issue now on the server:

Forms authentication failed for the request. Reason: The ticket supplied was invalid.

I've followed this: http://msmvps.com/blogs/omar/archive/2006/08/20/108307.aspx

But to no avail.


If you're piggybacking on the built-in ASP.NET Session Id, ensure your web app isn't running in cookieless mode. Sessionless pages do not send session ID cookies.

Try explicitly modifying the web.config sessionState element on your local server For example:

<sessionState mode="InProc" cookieless="false"

Explicitly setting this in web.config will override anything from the machine.config file or other web.config files, to ensure the configuration is correct. The reason you want to try this is because MSDN states:

Multiple configuration files, all named Web.config, can appear in multiple directories[..] Each Web.config file applies configuration settings to its own directory and all child directories [..] The root configuration file named systemroot\Microsoft.NET\Framework\versionNumber\CONFIG\Machine.config provides ASP.NET configuration settings for the entire Web server.


Are you using WCF or ASMX?

Have you monitored the conversation with Fiddler or WireShark to see if the Set-Cookie header is being provided by the server side?

0

精彩评论

暂无评论...
验证码 换一张
取 消