Unable to create asp.net session on a cookieless web application

你。 提交于 2019-12-01 10:59:44

问题


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?.


回答1:


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.




回答2:


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

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

?



来源:https://stackoverflow.com/questions/31430753/unable-to-create-asp-net-session-on-a-cookieless-web-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!