title: asp.net "Remember Me" cookie
body: <p>I have implemented remember me option in my asp.net webform by using this,</p>
  
  <pre><code>protected void LBtnSubmit_Click(object sender, EventArgs e)
   {
    if (this.ChkRememberme != null &amp;&amp; this.ChkRememberme.Checked == true)
    {
       HttpCookie cookie = new HttpCookie(TxtUserName.Text, TxtPassword.Text);
       cookie.Expires.AddYears(1);
       Response.Cookies.Add(cookie);
    }
  }
  </code></pre>
  
  <p>Am i doing it the right way? Any suggestion.. I am using windows authentication and i am <code>not using asp.net membership</code>..</p>