title: How can I show a modal window once per user session?
body: <p>I'm looking for a <code>script</code>, to display a modal window on page load when entering my website (whichever page) but only once during the same browsing <code>session</code>, so when the user closes and reopens the <code>browser</code> he sees the modal window again in my website. Can somebody help me? </p>
  
  <p>I found a reply to this question with a <code>jquery</code> plugin link that does not work now and a piece of code i am not sure how to use. Please see below for the reply given to another similar question </p>
  
  <p>The link given is <a href="http://plugins.jquery.com/files/jquery.cookie.js.txt" rel="nofollow">http://plugins.jquery.com/files/jquery.cookie.js.txt</a> </p>
  
  <p>and the code given is  </p>
  
  <pre><code>if ($.cookie('modal') != 'shown')    {
        $.cookie('modal', 'shown');
        // code to show modal    
  }
  </code></pre>
  
  <p>Can someone please help me with this? </p>