Unable to create asp.net session on a cookieless w

2019-02-20 09:09发布

I have a cookieless web application based on asp.net 4.5.

<sessionState mode="InProc" cookieless="true" timeout="10"/>

I access this application from a redirection, by sending the session Id in the request:

GET /WebApp/(S(stbb3233i55s0quqxs40x))/default.aspx HTTP/1.1

for some reason unknown I can't create the asp.net session and got stucked in a redirect loop. Any thoughts about how to overcome this situation?.

2条回答
爱情/是我丢掉的垃圾
2楼-- · 2019-02-20 09:38

Thanks to @AdrianWragg, I found it! The redirection was done through a reverse proxy but this server had an ISAPI filter that was removing the session Id from the request, after I removed the ISAPI filter everything worked just fine.

Wrong ISAPI filter

查看更多
祖国的老花朵
3楼-- · 2019-02-20 09:40

Can you try to change your configuration in the web.config to:

<sessionState mode="InProc" cookieless="false" timeout="10"/>

?

查看更多
登录 后发表回答