title: Jquery modal popup display only once per user session
body: <p>I have a jquery function that displays a modal popup when the page loads. Is there a way so it only displays once per user session. I have rad many posts but for whatever reason I can't get them to work in my script.</p>
  
  <p>my script:</p>
  
  <pre><code>$(document).ready(function() {
  
      $(window).load(function(){
          $( "#dialog1" ).dialog();
      });
  
  });
  </code></pre>
  
  <p>The modal popup is made up of:</p>
  
  <pre><code>&lt;div id="dialog1" title="IMPORTANT!"&gt;
      &lt;div class="imaindateselleft_padding_right_red"&gt;Content here&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Mant thanks in advance for your time and help.</p>