|Classes of Ovunc Tukenmez||>||PHP SameSite Session Cookie Starter||>||README.md||>||Download|
This PHP class enables samesite supported php session by modifying header created by session_start function. The browser agent is also checked against incompatible list of browsers.
start samesite none php session
start samesite strict secure php session
SameSite=None (default setting) works only with Secure cookies. So please make sure to use https protocol to start session correctly.
If you have previous started session with old settings, you need to clear its cookie first so new cookie can be set with the session_start() function. Here is an example to clear previous session cookie programmatically with SameSiteCookieSetter.
To set samesite cookies, you can use SameSiteCookieSetter.