title: set the local storage via asp.net core
body: <p>I am searching for a way to store and read local storage from asp.net core web application.</p>
  <p>Suppose the user manages counties. It has a <code>currentCountry</code>.
  Actually the <code>currentCountryId</code> is stored in a session variable, but the session ends often and the <code>currentCountry</code> object became invalid. Not good. Is there a way to store the currentCountryId in the browser local storage, in asp.net core?</p>