, Chrome . Firefox .
The installation of all parameters in the function is setcookiefixed.
This sets the cookie, but Chrome deletes the cookie with one click:
setcookie('uname', 'Joe', time()+3600*24);
This sets a cookie, and the browser saves it:
setcookie('uname', 'Joe', time()+3600*24, '/', 'www.domain.com', false, false);
source
share