Skip to content
Advertisement

Tag: httpcookie

What does this cookie line mean? (time()+1*24*60*60;)

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

Advertisement