Fire javascript (lightbox) once per session
<p>Hey all  I have a quick javascript question! Frustrated trying to get it sorted.... right now my modal div shows after 10 seconds which is right, but I want to only show it <strong>ONCE</strong> per session.  Here's my current code:</p>

<pre><code>&lt;script type="text/javascript"&gt;
 $(function() { // wait for the DOM
setTimeout(function () {
    var $modal = $('#free-awesome'); // your selector; cache it; only query the DOM once!

    $modal.modal('show'); // show modal; this happens after 10 seconds 

    setTimeout(function () {
        $modal.modal('hide'); // hide modal; 
    }, 50000);    
}, 10000);
});
&lt;/script&gt;
</code></pre>

<p>Any ideas how I can adapt that javascript to show once per visit/session?</p>

<p>I'm quite new to javascript so if you could let me know exactly what to swap the above  out for that'd be great!</p>

<p>Thanks in advance</p>
