How in PHP to delete cookies when closing a site?

  • using php - no way. - Maxim Timakov
  • 2
    It is when you close the tab with the site. Lifetime 0 - i.e. before closing the browser, not suitable? ( php.net/manual/ru/function.setcookie.php ) - Mike
  • @Mike, does it work exactly? And how many wrote in the Internet that cookies are not erased when you close the browser to any. - Visman
  • @Visman By standards should, before all browsers did that. Now they really write that some browsers do not do this or do not always. But then without crutches on JS then you can not do ... - Mike
  • js please, or the cookie's lifetime, for example, 15 minutes indicate the average value of the user’s location on the site - Naumov

0