I have a php code that says this time for the cookie to expire What exactly does this mean? Answer As hinted to in the comments – that’s a calculation of seconds from the current time. That’s 1 day (86400 seconds). 7 Days could be calculated similarly as: You can find a lot more explanation and examples in the PHP