PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Ovunc Tukenmez   PHP SameSite Cookie Setter   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP SameSite Cookie Setter
Set cookie values with the SameSite flag enabled
Author: By
Last change: added composer code
Date: 4 years ago
Size: 439 bytes
 

Contents

Class file image Download

SameSiteCookieSetter

This PHP class enables samesite supported cookies by modifying header created by setcookie() function. As of php version 7.3.0, new signature of setcookie() function exists. To support all php versions, this class use same parameters of new setcookie() signature. The browser agent is also checked against incompatible list of browsers.

Composer

composer require ovunctukenmez/samesite-cookie-setter