cookie_urlencode.php 242B

12345678910111213
  1. <?php
  2. use Symfony\Component\HttpFoundation\Cookie;
  3. $r = require __DIR__.'/common.inc';
  4. $str = '?*():@&+$/%#[]';
  5. $r->headers->setCookie(new Cookie($str, $str, 0, '', null, false, false));
  6. $r->sendHeaders();
  7. setcookie($str, $str, 0, '/');