7

Mobile browser(chrome, safari) not killing cookies with expire time set to '0', Same cookie persists when browser is reopened...

user1455795
  • 89
  • 1
  • 3

1 Answers1

-3

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.

From the official manual: http://php.net/manual/en/function.setcookie.php

Max Langerak
  • 1,187
  • 8
  • 17
  • Question was about session cookies not getting deleted on mobile browsers, not deleting cookies in general. – SRB Apr 28 '16 at 04:18