PHP Classes


Recommend this page to a friend!
  Classes of Ovunc Tukenmez   PHP SameSite Cookie Setter   Download  
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


Class file image Download


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 require ovunctukenmez/samesite-cookie-setter