title: Laravel 6 session cookies not being set for base domain in Safari 13
body: <p>In the Laravel framework, setting session cookies on the root domain level is not working in safari 13.0.3, but works in Safari 12, Chrome, and Firefox.</p>
  
  <p>Because cookies are not being set, each page refresh creates a new session and logging in does not work.</p>
  
  <p>I am using the default laravel setup aside from session behavior in app/session.php, where I've changed the SESSION_DOMAIN to the root domain ('.example.test') and set the SESSION_DRIVER to 'database' (following advice from <a href="https://stackoverflow.com/questions/30338518/persisting-sessions-across-subdomains-in-laravel-5">Persisting sessions across subdomains in Laravel 5</a>).</p>
  
  <p>The cookies get set in safari 13 when the domain is set to the full url (subdomain.example.com) but not when changed to the root url (.example.com)</p>
  
  <p>In the Safari debugging tools, I can see the request headers being set and going through, but the cookies never make it into storage.</p>
  
  <p>Network request headers/cookies:
  <a href="https://i.stack.imgur.com/hANoQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hANoQ.png" alt="Network request headers/cookies"></a></p>
  
  <p>Things I have tried:</p>
  
  <ul>
  <li>Tried with and without the driver as database</li>
  <li>Changing the session cookie name, the samesite behavior, and the secure behavior in session.php</li>
  <li>adding slash to end of session domain as well as removing the first .</li>
  <li>Incognito / Private browsing mode (doesn't change behavior, still works in chrome but not safari)</li>
  <li>Isolating issue as well as upgrading to latest laravel version (originally noticed on 5.6, still happening in latest release 6.6)</li>
  <li>Turning off cookie encryption</li>
  </ul>