title: Is it secure to store passwords in cookies?
body: <p>My web application's home page has a <strong>RememberMe</strong> checkbox. If the user checks it, I willl store email-id and password in cookies. This is my code:</p>
  
  <pre><code>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>What I want to know is:</p>
  
  <ul>
  <li>Is it secure to store passwords in cookies? </li>
  <li>What is proper way of doing the same? </li>
  <li>What are the best practices in setting time for a cookie?</li>
  </ul>