Cookie not getting set for index.php page in Safari 5.1.7 -
i have following script add cookie page visited colorbox:
if (document.cookie.indexof('visited=true') === -1) { var expires = new date(); expires.setdate(expires.getdate()+1000); document.cookie = "visited=true; path=/index.php; expires="+expires.toutcstring(); $.colorbox({href:'files/welcome.html', width:"45%", speed:1500}); } this sets cookie in firefox , chrome page visited not in safari (5.1.7). similar script sets cookie page on site, setting path=/mixups/june_2012/ works fine in safari.
does know why happening, , if there fix?
thanks,
nick
Comments
Post a Comment