Skip to content
Snippets Groups Projects
Commit af416d9e authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

Document SameSite issues under session lost.

Closes: #1411
(cherry picked from commit 306b8281)
parent 79e0f6c5
No related branches found
No related tags found
No related merge requests found
...@@ -101,6 +101,17 @@ What those settings should be set to depends on the application. The simplest ...@@ -101,6 +101,17 @@ What those settings should be set to depends on the application. The simplest
way to determine it may be to look for calls to `session_set_cookie_params` in way to determine it may be to look for calls to `session_set_cookie_params` in
the application, and look at what parameters it uses. the application, and look at what parameters it uses.
#### Browsers with SameSite=Lax as default
Some browsers, notably Chrome, will default the cookie SameSite attribute to "Lax" if it
is not set. Specifically in the context of SAML this means that cookies will not be sent
when a POST request is performed between websites, which is typical for the SAML WebSSO
flow. The lack of cookies will cause SimpleSAMLphp's session to be lost when receiving an
assertion via the HTTP-POST binding.
To resolve this, you can set the `session.cookie.samesite` attribute in `config.php`
to `None`.
#### A generic problem saving sessions #### A generic problem saving sessions
Sometimes the problem is caused by SimpleSAMLphp being unable to load and/or save Sometimes the problem is caused by SimpleSAMLphp being unable to load and/or save
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment