First of all, sorry, I see there are lots of repetitions about the whole cookie question, yet I have to add this one for I am getting quite confused with different jQuery cookie plugIns.
I am using this jQuery Cookie Plugin v1.4.1
I successfully implemented the following code on one of my pages (not the home page!)
$(document).ready( function() {
if ($.cookie('noFadeWorks')) {
// do something when initial effect on page enter has been already seen
} else {
// functions here to do the initial page enter effect
$.cookie( 'noFadeWorks', true );
};
});
Now this basically works with some problems/questions yet:
Working as expected in Safari. When browser is closed and reopened everything starts from 0 as expected and desired. YET: Google Chrome even after close and reopen still has the cookie. My effect functions do not enter the game anymore. Not desired here.
It would be awesome if from some points of the session I could tell the browser to forget about the cookie and start from 0 (with the effect on the certain page) again. I tried for that: $.removeCookie( 'noFadeWorks' ); on my homepage but this didn’t work at all.
Do I explain myself? How is this to be done correctly? I also tried the expire options without success.
Thanks so much in advance!