Can anyone tell me what happens when a PHP cookie expires? Will it be deleted? Will it be accessible?
Asked
Active
Viewed 4,316 times
6
-
2This is browser-dependent and not specific to PHP, but rather just "cookies". – Jonathon Reinhart Apr 16 '14 at 04:35
2 Answers
7
when a cookie expires, the browser do not send it to the server.
https://superuser.com/questions/356265/what-do-browsers-do-with-expired-cookies
0
Cookies must be deleted with the same parameters as they were set with. If the value argument is an empty string, or FALSE, and all other arguments match a previous call to setcookie, then the cookie with the specified name will be deleted from the remote client. This is internally achieved by setting value to 'deleted' and expiration time to one year in past.

train_fox
- 1,517
- 1
- 12
- 31