first of all I apologize for my bad English. I hope you will correct me. ^_^
I have a form that has to be shown if there is NOT the cookie “cookie_srp”. I used this code:
if(!isset($_COOKIE['cookie_srp'])){
echo 'form code';
}
To create the cookie use this js code:
function srp_cookie() {
var date = new Date();
date.setTime(date.getTime()+(srp_optime));
var expires = "; expires="+date.toGMTString();
document.cookie = 'cookie_srp=set;'+expires+"; path=/";
document.getElementById('srp_slider').style.display = 'none';
}
Everything works fine if the plugin “wp super cache” is disabled.
Instead if the plugin “wp super cache” is enabled the visualization will be wrong for everybody except the first visitor.
I found these solutions but do not know how to apply them, I dont know very well the ajax language.
http://omninoggin.com/wordpress-posts/make-any-plugin-work-with-wp-super-cache/
http://z9.io/2008/11/01/make-your-wordpress-plugin-talk-ajax/
Solved, This is a working e.g.
In function omni_ts_and_ref() { you can put the php code that will not be cached.