The only way to delete a cookie is set the expire time in the past. such as time()-3600 etc. Am I right?
But if the the client time zone is behind you, so you want to set the time()-3600*24 to solve the time zone problem. Am I right?
But just in case, some people's computer's clock is set deadly wrong, such as if his computer clock is in 1980 or something, then what?
How do I set up the cookie expired at 1980 for example. Or what is the earlest time to I can set my cookie to be expired?
4.
Will it be best to delete cookie this way, set the value to null and set the time to 0 (so when the session is over the cookie will be deleted.)
setcookie("mycookie", "", 0, "/");
due to if the time is 0, that means after the client close his browser end the the session, this cookie will for sure be deleted?