PHP Classes

File: vendor/symfony/http-foundation/Tests/Fixtures/response-functional/cookie_samesite_lax.php

Recommend this page to a friend!
  Classes of Hillary Kollan   Chatto PHP Websocket Chat System   vendor/symfony/http-foundation/Tests/Fixtures/response-functional/cookie_samesite_lax.php   Download  
File: vendor/symfony/http-foundation/Tests/Fixtures/response-functional/cookie_samesite_lax.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Chatto PHP Websocket Chat System
Websocket based chat system using Ratchet library
Author: By
Last change:
Date: 3 years ago
Size: 238 bytes
 

Contents

Class file image Download
<?php

use Symfony\Component\HttpFoundation\Cookie;

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

$r->headers->setCookie(new Cookie('CookieSamesiteLaxTest', 'LaxValue', 0, '/', null, false, true, false, Cookie::SAMESITE_LAX));
$r->sendHeaders();