Cookie once per browser session

  • Profile Image
    sakurai
    Asked on December 28, 2011 at 10:24 AM

    How do I set  up a cookie to "popup" a lightbox form only once per browser session?

    I see a refference to the solution on this post by Liyam:

    http://www.jotform.com/answers/28146-how-do-I-have-my-form-popup-in-lightbox-as-soon-as-they-visit-my-site

     

    My code below:

    <script src="//www.jotform.com/min/g=feedback" type="text/javascript">
    new JotformFeedback({
    formId:'13561923201',
    base:'http://www.jotform.com/',
    windowTitle:'Title Me',
    background:'#FFA500',
    fontColor:'#FFFFFF',
    type:false,
    height:500,
    width:700,
    openOnLoad:true
    });
    </script>
    <a class="lightbox-13561923201" style="cursor:pointer;color:blue;text-decoration:underline;">Yes! Send me the FREE Reports</a>

  • Profile Image
    fxr
    Answered on December 29, 2011 at 09:50 AM

    Try using php to set and check for your cookie. 

    Please inspect this code and see if you are able to work it into your webpage.  -> 


    The session cookie will expire when the browser window is closed. 

    That should work as per the description of your needs, let me know if you have any questions on it.