Paul
Paul

Reputation: 337

How to get cookieless session to work with Windows Azure website

I'm working on an ASP.Net MVC website that is deployed to a Windows Azure Website. The site uses cookieless session with the RedisSessionStateStore provider. The site works fine in a local dev environment, but when deployed to Azure, any request to the site causes an infinite redirect loop. Each loop tries to generate a new session Id in the url.

I've tried the following, but have not got any of these to work.

Please let me know if it is possible to get cookieless session working when deployed to Windows Azure website. If so, how? Also, is there any reason why none of my attempts to disable Arr Affinity cookie worked?

Upvotes: 0

Views: 810

Answers (1)

viperguynaz
viperguynaz

Reputation: 12174

See this SO question and this forum post. Bottomline - cookieless sessions are not supported in MVC. They may appear to be working locally - but if they are, then there will a Session ID in every URL (read here - 2005 MSDN article)

Upvotes: 1

Related Questions