I\'m trying to set a PHP cookie to expire 1 Year from when the user logged in, and I\'m doing it this way:
setcookie(\"myCookie\",\'exampleUserName\',(365 *
Do like this...
setcookie("myCookie",'exampleUserName',time()+31556926 ,'/');// where 31556926 is total seconds for a year.