How to set cookie to all website include subdirectories in localhost with PHP

1 Answer

0 votes
setcookie('cookie_name', $cookie_value, time() + (10 * 365 * 24 * 60 * 60), "localhost/website.com/");

/*
run:

*/

 



answered Jan 5, 2019 by avibootz
...