[ad name=”In Post (LU)”]
Where 60*60*24*365*10 is equal to:
10 years = 60 seconds * 60 minutes * 24 hours * 365 days * 10 years
So to make a cookie expire in 50 years for example you would just need to modify the 10 at the end and the PHP snippet will look like this:
Done! Now you have a PHP cookie that never expires (or at least it will outlive your computer).