cookies - PHP setcookie with small timeout value not working? -
setcookie('cdate', date('ymd'), time() + 120);
setcookie('cdate', date('ymd'), time() + 82500);
i trying set cookie 2 minutes expired time. strangely, no cookie set no. 1 no. 2 working. view cookie in chrome , firefox. idea?
btw, running php + iis in windows 7 locally.
please check server time (it must same computer time): var_dump(date('h:i:s'))
. if not same computer time, can change timezone on server.
Comments
Post a Comment