Skip to content

Instantly share code, notes, and snippets.

@cmbuckley
Last active October 26, 2022 12:45
Show Gist options
  • Save cmbuckley/609c2ed0bbebbbbb569bb81ebedc7abd to your computer and use it in GitHub Desktop.
Save cmbuckley/609c2ed0bbebbbbb569bb81ebedc7abd to your computer and use it in GitHub Desktop.
<?php
header('Location: https://setcookie.net');
@ecki
Copy link

ecki commented Mar 14, 2021

You might want to allow __Host- and __Secure- prefix in the pattern, as well as SameSite attribute.

@cmbuckley
Copy link
Author

I updated for SameSite support, which was dependent on upgrading to PHP 7.3+

@cmbuckley
Copy link
Author

cmbuckley commented Oct 26, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment