title: session_destroy() with multiple sessions
body: <p>I have 3 login forms in my page, clicking logout is destroying all the sessions and logging them all out. 
  I know that session_destroy() destroys all the data associated with the current session but could i give it a parameter or is there any way to specify which session to destroy?
  I have tried using unset without the session_destroy but it won't logout the user</p>
  
  <p><strong>Code edited:</strong></p>
  
  <pre><code>&lt;?php
      if(isset($_GET['auth'])){
          if($_GET['auth']=='parent'){
          session_name('parent');
          session_start();
              if(isset($_SESSION['parent']))
                  unset($_SESSION['parent']); 
                  session_destroy();
      }}
      if(isset($_GET['auth'])){
          if($_GET['auth']=='employee'){
          session_name('employee');
          session_start();
              if(isset($_SESSION['employee']))
                  unset($_SESSION['employee']); 
                  session_destroy();
      }}
      if(isset($_GET['auth'])){
          if($_GET['auth']=='student'){
          session_name('student');
          session_start();
              if(isset($_SESSION['student']))
                  unset($_SESSION['student']); 
                  session_destroy();
      }}
  
      header("Location: login.php");
      ?&gt;
  </code></pre>
  
  <p>I have added session_name to get different sessions, i am able to destroy the session but i can't have multiple sessions in the same page!</p>