title: What is the best way to end a session?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4239674/how-do-i-kill-a-php-session">How do I kill a PHP session?</a>  </p>
  </blockquote>
  
  
  
  <p>When ending a session, session_destroy() is supposed to destroy the session and the session variables registered with the session. But I've seen lots of codes that unsets all the registered session variables before destroying the session. Please who knows, what is the best practice?</p>