I am using MVC3. ASP.NET 4.5, EF5, SQL Azure, Azure Websites.
I want to get rid of my session variables due to:
1) Multi instance issues
2) Locking issues
I am only using about 5, and then they are for ids.
I have read MS's Azure recommendations for Azure web development, and they recommend removing session variables. They seem to recommend alternative persistent options, in order of preference:
1) Cookies (I would secure these ie hashing/encryption etc.)
2) Caching server
3) SQL Azure
I have seen some negative feedback on cookies, especially overhead, but cannot see an issue with ids only. Also there are security concerns, but with encryption etc these can be sorted fairly easily I would think. It seems cookies provide a simple solution without getting caught up in the complexities of caching, although SQL Azure would be simple as well, although less performant.
I would appreciate some recommendations on this.
1) Do you seek to avoid session vars in Azure website applications.
2) If so then how do you achieve it?
Many thanks.