Answers for "why set cookie doesn't work in php in different folders"

PHP
2

cookie are not set in php

setcookie('username',$username,time()+60*60*24*365);
// 'Force' the cookie to exists
$_COOKIE['username'] = $username;
Posted by: Guest on May-15-2020

Code answers related to "why set cookie doesn't work in php in different folders"

Browse Popular Code Answers by Language