popup-maker cookie issue with w3 total cache in Firefox (Last version)
-
Hi,
Thanks for the great plugin.
Here is what i want to achieve:
https://www.colibrys.com/info-center/techzone/ — Content is locked and can be viewable after filling the form.
So,On submit of this gravity form i have set Cookie using
setcookie("cookiename", 1, strtotime( '+30 days' ),'/');
and then reload page: So, Next time user come on same page There should not be popup again.
But With W3 total cached plugin this auto popup works again and again eventhough cookie is set.
Below is the code i am using to close the popup if cookie is alreay set
<?php // Check if cookie is set // If value is 1 then user has submitted the form if(isset($_COOKIE['cookienaem']) && !is_front_page()) { ?> <script type="text/javascript"> jQuery(document).ready(function(){ setTimeout(function () { jQuery('#popmake-2261').popmake('close'); }, 1000); // 5 seconds }); </script> <?php } ?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘popup-maker cookie issue with w3 total cache in Firefox (Last version)’ is closed to new replies.