cookie_max_age.php 243 B

12345678910
  1. <?php
  2. use Symfony\Component\HttpFoundation\Cookie;
  3. $r = require __DIR__.'/common.inc';
  4. $r->headers->setCookie(new Cookie('foo', 'bar', 253402310800, '', null, false, false));
  5. $r->sendHeaders();
  6. setcookie('foo2', 'bar', 253402310800, '/');