Skip to content
Snippets Groups Projects
Commit fdee56c2 authored by Olav Morken's avatar Olav Morken
Browse files

SessionHandlerPHP: Don't call session_start() if it has been called earlier.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@84 44740490-163a-0410-bde0-09ae8108e29a
parent 285bc961
No related branches found
No related tags found
No related merge requests found
......@@ -21,8 +21,15 @@ class SimpleSAML_SessionHandlerPHP extends SimpleSAML_SessionHandler {
*/
parent::__construct();
/* Initialize the php session handling. */
session_start();
/* Initialize the php session handling.
*
* If session_id() returns a blank string, then we need
* to call session start. Otherwise the session is already
* started, and we should avoid calling session_start().
*/
if(session_id === '') {
session_start();
}
}
......
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