• Resolved chugs

    (@chugs)


    What specific cookie(s) does your plugin set to hide the locker from visitors who have already signed up? Want to use that cookie to hide a popup for signed up visitors.

Viewing 1 replies (of 1 total)
  • Plugin Author OnePress

    (@onepressmedia)

    Hi,

    The plugin utilizes the local storage instead of the cookies.

    You can access it this way:

    for(let i=0; i<localStorage.length; i++) { 
      let key = localStorage.key(i);
      console.log(key);
      console.log(localStorage.getItem(key));
    }

    The email form sets an item with the following key:
    opanda_{hash}_hash_form

    Instead of accessing the locker flag you can also set your own cookies using the hook:

    $.pandalocker.hooks.add( 'opanda-unlock', function(e, locker, sender){
        document.cookie = "myCookie=123";
    });

    Paul

    • This reply was modified 4 years, 5 months ago by OnePress.
Viewing 1 replies (of 1 total)
  • The topic ‘Cookies’ is closed to new replies.