审查视图

vendor/symfony/http-foundation/Tests/Fixtures/response-functional/cookie_max_age.php 243 字节
郭盛 authored
1 2 3 4 5 6 7 8 9 10
<?php

use Symfony\Component\HttpFoundation\Cookie;

$r = require __DIR__.'/common.inc';

$r->headers->setCookie(new Cookie('foo', 'bar', 253402310800, '', null, false, false));
$r->sendHeaders();

setcookie('foo2', 'bar', 253402310800, '/');