ASP.NET Sessions Reset

Reset Sessions

If your site is having issues with ASP.Net sessions being reset or lost you will need to assign a static MachineKey in your web.config file. By default the MachineKey is set to "AutoGenerate" so when the site recycles due to inactivity or memory limitations the sessions the key is regenerated causing sessions to be list.

To generate a static MachineKey please visit http://www.eggheadcafe.com/articles/GenerateMachineKey/GenerateMachineKey.aspx.

To set the MachineKey in your web.config please visit http://msdn.microsoft.com/en-us/library/ms998288.aspx

Add Feedback