Skip to content
Snippets Groups Projects
Commit acb4051c authored by Andjelko Horvat's avatar Andjelko Horvat
Browse files

SimpleSAML_SessionHandlerPHP::newSessionId(): cleaner version for r3273.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@3274 44740490-163a-0410-bde0-09ae8108e29a
parent 8e312491
No related branches found
No related tags found
No related merge requests found
......@@ -73,12 +73,12 @@ class SimpleSAML_SessionHandlerPHP extends SimpleSAML_SessionHandler {
$sessionId = SimpleSAML_Utilities::stringToHex(SimpleSAML_Utilities::generateRandomBytes(16));
SimpleSAML_Session::createSession($sessionId);
if (session_id($sessionId) !== '') {
if (session_id() !== '') {
/* Session already started, close it. */
session_write_close();
session_id($sessionId);
}
session_id($sessionId);
session_start();
return session_id();
......
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