title: PHP setting a Session-Cookie with samesite
body: <p>I currently have a PHP script that sets the sametime cookie as follows:</p>
  
  <pre><code>    session_set_cookie_params($cookie_timeout, $cookieParams["path"], $cookie_domain, $session_secure, $cookie_httponly);
  </code></pre>
  
  <p>I want to add samesite="Lax" to the above statement by adding an extra parameter where ($cookie_samesite="Lax")</p>
  
  <pre><code>    session_set_cookie_params($cookie_timeout, $cookieParams["path"], $cookie_domain, $session_secure, $cookie_httponly, $cookie_samesite);
  </code></pre>
  
  <p>The new output of the statement would look like</p>
  
  <blockquote>
    <p>1800, /, ".vasports.com.au", 1, 1, "Lax" </p>
  </blockquote>
  
  <p>Is this the correct format for the samesite parameter?</p>
  
  <p>NOTE: I do not have a PHP7.3 installed yet. Hence I can't test this properly.
  And I've referred to PHP doco for "session_set_cookie_params".
  I have also checked</p>
  
  <p><a href="https://stackoverflow.com/questions/39750906/php-setcookie-samesite-strict">PHP setcookie &quot;SameSite=Strict&quot;?</a></p>