title: How can I create persistent cookies in ASP.NET?
body: <p>I am creating cookies with following lines:</p>
  <pre><code>HttpCookie userid = new HttpCookie(&quot;userid&quot;, objUser.id.ToString());
  userid.Expires.AddYears(1);
  Response.Cookies.Add(userid);
  </code></pre>
  <p>Now how can I make it persistent?</p>
  <p>If I visit the same page again after closing the browser, I'm unable to get it back.</p>