title: check session registered in php, than jquery ajax to print session variables
body: <p>register session php (in a different file it gets processed):</p>
  
  <pre><code> $_SESSION['valid_user'] = $cust_email; //register session
   header('Location: ' . $_SERVER['HTTP_REFERER']); //redirect to refering page
   exit;
  </code></pre>
  
  <p>this session value appears in a div on top of every page:</p>
  
  <pre><code> &lt;div class="message"&gt;
      &lt;?php
      echo "$message";
      ?&gt;  
   &lt;/div&gt;
  </code></pre>
  
  <p>I am trying that this data to be passed to jquery-ajax so that once registered, session variable appears asynchronously in that div. Right now I need to refresh the page</p>