title: How can I set a cookie to remember the last login users Name and Email
body: <p>How can i set a cookie to remember certain user details from previous session. What i want the browser to remember is the users Name and Email address and auto fill the users details except their password so that the login is convenient i want this to be remembered by a cookie.</p>
  
  <p><strong>I have already tried the following...</strong></p>
  
  <pre><code>&lt;?php 
      $username = '$flname';
      $useremail = '$email';
      setcookie('csm_remember_pre-session', $username, $useremail, time()+7200); //Remember Previous User for two hours only
      $_COOKIE['csm_remember_pre-session'];
  ?&gt;
  </code></pre>