title: php session does not destroy on refresh
body: <p>i am making a 10 question survey with one question at a point. i made a session for passing values between questions. the thing i discovered is that the session values do not get destroyed even on a page refresh. is there a workaround or am i doing something wrong.</p>
  
  <p>just to make things clear, here is the code:</p>
  
  <pre><code>session_start(); 
  //  $_SESSION['score'] = $score;
      $_SESSION['qnum'] = isset($_SESSION['qnum']) ? $_SESSION['qnum']+1 : 1;
  
      if ($_SESSION['qnum'] &lt; 10){
          $_SESSION['total'] = isset($_SESSION['total']) ? $_SESSION['total']+$score : $score;
      }
      else if ($_SESSION['qnum'] == 10){
          $_SESSION['total'] = isset($_SESSION['total']) ? $_SESSION['total']+$score : $score;
          echo "finished";
      }
  
      echo $_SESSION['qnum'];
      echo '\n';
      echo $_SESSION['total'];
  </code></pre>