title: close session in wordpress
body: <p>I put this code for true random posts in all pages, but the session still alive after closing browser.</p>
  
  <p>functions.php</p>
  
  <pre><code>session_start();
  
  add_filter('posts_orderby', 'edit_posts_orderby');
  
  function edit_posts_orderby($orderby_statement) {
  
      $seed = $_SESSION['seed'];
      if (empty($seed)) {
        $seed = rand();
        $_SESSION['seed'] = $seed;
      }
  
      $orderby_statement = 'RAND('.$seed.')';
      return $orderby_statement;
  }
  </code></pre>
  
  <p>How can restart session in wordpress? If the same user reload index.php i want post are random, not the same of last session.</p>