javascript - php's "setcookie" doesn't work cross-browser? -
at moment i'm using setcookie set cookies, works in firefox , safari, , cookies not set in ie , chrome (and maybe other browsers).
setcookie($name, $value, time()+3600 * 25);
i read in article setcookie , ie, if expiry date in past (or small), ie ignores it.
i know javascript can set cookies (i'm using mootools) i'd prefer using php , mootools & cookies isn't working me.
any appreciated.
check server's clock. if it's running more 25 hours behind, time() + 3600 * 25
still in past far browser concerned.
Comments
Post a Comment