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 *
try this one
setcookie($cookie_name, $cookie_value, time() + ( 365 * 24 * 60 * 60));