Cookies & cache
-
Hi,
I’ve got minor programming skills, I must say. And have got an important problem after installing w3tc.
What i’m trying to do is to let visitors accept cookie policy. I include an external file to header.php, which looks like:
<?php if($_GET[ciastka] == 'yes') { setcookie('ciastka01a9e', 1, time()+3600*24*365, COOKIEPATH, COOKIE_DOMAIN, false); header('Location: /'); exit(); } if (!isset($_COOKIE['ciastka01a9e'])) { //do some html&jquery with text & approval link } else { //stay empty } ?>
everything worked great but after the page is cached, it doesn’t work.. It seems like the cache should be deleted everytime someone accept cookies – and that will generate a lot of useless operations…
Can someone help me?
P.S. Sorry for my bad english ??
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Cookies & cache’ is closed to new replies.