Security update for Core, with self-updated composer
[yaffs-website] / vendor / behat / mink-browserkit-driver / tests / web-fixtures / cookie_page3.php
1 <?php
2
3 $hasCookie = $app['request']->cookies->has('foo');
4 $resp = new Symfony\Component\HttpFoundation\Response();
5 $cook = new Symfony\Component\HttpFoundation\Cookie('foo', 'bar');
6 $resp->headers->setCookie($cook);
7
8 ?>
9 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
10 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">
11 <head>
12     <title>HttpOnly Cookie Test</title>
13     <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
14     <script>
15     </script>
16 </head>
17 <body>
18     <div id="cookie-status">Has Cookie: <?php echo json_encode($hasCookie) ?></div>
19 </body>
20 </html>