What is the proper syntax to correct the cookie SameSite issue.
In the Chrome Developer's Console Issues, I have this error when visit my Dokuwiki site.
Indicate whether to send a cookie in a cross-site request by specifying its SameSite attribute
Because a cookie’s SameSite attribute was not set or is invalid, it defaults to SameSite=Lax, which prevents the cookie from being sent in a cross-site request. This behavior protects user data from accidentally leaking to third parties and cross-site request forgery.
Resolve this issue by updating the attributes of the cookie:
Specify SameSite=None and Secure if the cookie should be sent in cross-site requests. This enables third-party use.
Specify SameSite=Strict or SameSite=Lax if the cookie should not be sent in cross-site requests.
From reading the forum and the googles, I believe the mydokuwikisite.com/php.ini is to be modified to include the code snippet
session_set_cookie_params([
'lifetime' => 3600,
'path' => /,
'domain' => mydokuwikisite.com,
'secure' => true, // set it true for secure
'httponly' => true, // set it true for secure
'samesite' => Strict
]);
Do I have the php.ini file in the correct location?
Syntax error?
Unfortunately, the error is still here.
Thank You for any knowledge