Asp.Net MVC5 How to ensure that a cookie exists?
问题 I'm new to MVC (5). In order to add localization support to my website I added a " Language " field to my ApplicationUser : IdentityUser What's the best approach to now store this information in the browser and ensure that it gets re-created even if the user manually deletes it? TL; but I've got time What I've tried until now: I started creating a cookie in my method private async Task SignInAsync(ApplicationUser user, bool isPersistent) but I notice that: This method is not used if the user