php - Cookie expiration is browser specific or server specific? -


i setting a cookie expiration time

mktime(24,0,0). 

my question simple. if browsers timezone different , cookie follow server's timezone expire or browser's timezone ?

the set-cookie header has timezone information part of expires datetime user agent knows when should expire.

set-cookie: sessiontoken=abc123; expires=wed, 09 jun 2021 10:18:14 gmt

from php docs setcookie

expire

...

note: may notice expire parameter takes on unix timestamp, opposed date format wdy, dd-mon-yyyy hh:mm:ss gmt, because php conversion internally.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -