Skip to content
Snippets Groups Projects
Unverified Commit 08ae7dfd authored by Silas's avatar Silas Committed by GitHub
Browse files

fixed warning when Warning: session_create_id(): Failed to create ID (#1291)


* fixed warning when Warning: session_create_id(): Failed to create new ID in /var/ssosp/lib/SimpleSAML/SessionHandlerPHP.php

* Use session_create_id() unconditionally

In master, we require PHP 7.2, which is guaranteed to provide `session_create_id()`. Therefore, we don't need the if clause any longer. Add also a warning when `session_create_id()` fails, and fall back gracefully to our old way to create session IDs.

Co-authored-by: default avatarJaime Pérez Crespo <jaime.perez@uninett.no>
parent ae45cd82
No related branches found
No related tags found
No related merge requests found
Loading
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