gbirke / rememberme

A PHP library that implements secure "Remember me" cookies
MIT License
125 stars 30 forks source link

Support for SameSite attribute #45

Closed m-ober closed 3 years ago

m-ober commented 3 years ago

Support for setting the SameSite attribute should be added.

As of PHP 7.3, this attribute can be set using an alternative signature of the setcookie() method.

Before PHP 7.3, workarounds exist.

RememberMe currently has a minimum version requirement of 7.2. Maybe this should be increased to 7.3 to safely use the new signature of setcookie().