title: $_SESSION Help How To Use It In One Page? (With Redirect?)
body: <p>I wonder if the following is possible?
  My website have a secret link (website.com/?secret=yes) I wanted to make the url look (website.com) after they have entered + show them the special content because they are from the secret link.</p>
  
  <p>I thought about something like this possibly can work? 
  1. User Navigate to (website.com/?secret=yes) create a $_SESSION and make it true + Instant navigate to website.com
  2. Checks to see if $_SESSION = true if true show the special content?</p>
  
  <p>I have the the following code: </p>
  
  <pre><code>&lt;?php $secret = isset( $_GET[ 'secret' ] ) ? sanitize_text_field( $_GET[ 'secret' ] ) : false; ?&gt;
  
  &lt;?php if( 'yes' === $secret ) : ?&gt;
      &lt;div&gt;
          &lt;p&gt;My secret content&lt;/p&gt;
      &lt;/div&gt;
  &lt;?php endif; ?&gt;
  </code></pre>
  
  <p>If it was possible to make use of this + $_SESSION or if you have any ideas? I don't really know how $_SESSION works but i read in php.net about it and i think it's possible?</p>
  
  <p>Thank you!</p>
  
  <p>p.s I use wordpress.</p>