title: What should I store in cookies to implement "Remember me" during user login
body: <p>I have a login system in place for my website, the details of the user which are stored in the database are <strong>userid</strong>(unique for every user and identifier), <strong>email address</strong>(unique), <strong>display name</strong>(not unique), <strong>password</strong> and <strong>membersince</strong>.<br />
  Now what should I store in the cookies? I was thinking about storing just the userid in the cookie with an expiration date and then if the user revisits my website after signing up check for the cookie and log him in( which kind of doesn't look right to me) and destroy the cookie if he decides to log out.<br />
  *A little explanation would also be very helpful. Thanks</p>