We have ASP.NET code that runs fine on Windows 2008, but on Windows 2012 (on an Azure VM) it's deleting the session variables on a redirect:
Login loggedInUser = StoreV2Entities.Current().Logins.Include(a => a.Account).SingleOrDefault(l => l.UserName == UsernameTextbox.Text);
Session["login"] = loggedInUser;
Response.Redirect("~/apps/UserCart.aspx?register=1", false);
Is there some way to make this work?
And if not, what is the best way to persist session variables? This is on an Azure VM but it's not an Azure website, it's a plain old Windows 2012 VM. No clustering or fail over or publishing to a changing system.
thanks - dave