Skip to content
Snippets Groups Projects
Commit 0b33b995 authored by Jaime Pérez's avatar Jaime Pérez
Browse files

Make exception message when setting secure PHP session cookies through an...

Make exception message when setting secure PHP session cookies through an insecure channel coincident with the message in SimpleSAML\Utils\HTTP::setCookie().
parent 400753dc
No related branches found
No related tags found
No related merge requests found
...@@ -323,7 +323,7 @@ class SimpleSAML_SessionHandlerPHP extends SimpleSAML_SessionHandler ...@@ -323,7 +323,7 @@ class SimpleSAML_SessionHandlerPHP extends SimpleSAML_SessionHandler
if ($cookieParams['secure'] && !\SimpleSAML\Utils\HTTP::isHTTPS()) { if ($cookieParams['secure'] && !\SimpleSAML\Utils\HTTP::isHTTPS()) {
throw new \SimpleSAML\Error\CannotSetCookie( throw new \SimpleSAML\Error\CannotSetCookie(
'Secure cookies not allowed on http.', 'Setting secure cookie on plain HTTP is not allowed.',
\SimpleSAML\Error\CannotSetCookie::SECURE_COOKIE \SimpleSAML\Error\CannotSetCookie::SECURE_COOKIE
); );
} }
......
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