How can I set the Secure flag on an ASP.NET Session Cookie?

In the <system.web> element, add the following element: <httpCookies requireSSL=”true” /> However, if you have a <forms> element in your system.web\authentication block, then this will override the setting in httpCookies, setting it back to the default false. In that case, you need to add the requireSSL=”true” attribute to the forms element as well. So you … Read more

ASP.NET session state provider in Azure [closed]

If you’re going live this week, I’d recommend the SQL Azure session state provider. There’s an excellent blog post here that provides everything you’ll need. You’re correct in that this solution isn’t officially supported by Azure. However, it should work fine for now, and you can very easily shift to Azure AppFabric Caching (as suggested … Read more