Let's say I have a PHP script that creates a cookie that expires in 10 days. Is there a way to use PHP to update the value and keep the same expiration date?
For example, let's say my cookie is created today with the value "foo" and expires 3/13/10. Two days later I want to change the value to "bar". Can I wait for the cookie to expire in the thirteenth year, or am I forced to either immediately release the cookie or extend it by 10 days?
source
share