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:
>> Here 'TestName' is name of cookie. >> "Test Value" is value to store. >> time()+3600 * 24 * 365 - will set cookie time till 1 year.
Thanks!