title: Faster way to select either SESSION or COOKIE value if exists?
body: <p>Do I have to write </p>
  
  <pre><code>if (isset($_SESSION['name'])) {
      $name = $_SESSION['name'];
  } elseif (isset($_COOKIE['name']) {
      $name = $_COOKIE['name'];
  }
  </code></pre>
  
  <p>Everytime I make a feature of <code>Remember Me</code> for users who want to save their Log status? Is there a ready function to handle this Or do I make my function?</p>