title: Where does ASP.Net Core `cookies authentication` store a reference to that cookie?
body: <p>Sometimes I used to see PHP developers passing an Id in their cookies, and save a reference in the database to that cookie (so they can authenticate the users by cookies). But in ASP.Net Core, I have never seen that.</p>
  
  <p>How and where does ASP.Net Core know that this cookie is owned by this user? Is everything stored in memory (in some kind of objects)?</p>
  
  <p>In case of yes, does that mean that the users should be logged in again if I restarted my application? Or is there any method that ASP.Net Core provides to persist the references to cookies even after restarting the application?</p>