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

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -