Bugfixes: the PHP session handler only fetches the cookie configuration parameters if session_id() returns a non-empty ID. This won't happen if the application initialized a session previously, hijacking the session and causing all kinds of trouble. Instead, we need to detect if there's an active session, save its parameters and close it. After closing it, we can name a new session and set the cookie parameters.
Bugfixes: the PHP session handler only fetches the cookie configuration parameters if session_id() returns a non-empty ID. This won't happen if the application initialized a session previously, hijacking the session and causing all kinds of trouble. Instead, we need to detect if there's an active session, save its parameters and close it. After closing it, we can name a new session and set the cookie parameters.

jschlyter/simplesamlphp,simplesamlphp/simplesamlphp,ghalse/simplesamlphp,sitya/simplesamlphp,simplesamlphp/simplesamlphp,jschlyter/simplesamlphp,simplesamlphp/simplesamlphp,dnmvisser/simplesamlphp,ghalse/simplesamlphp,dnmvisser/simplesamlphp,jschlyter/simplesamlphp,jschlyter/simplesamlphp,sitya/simplesamlphp,sitya/simplesamlphp,dnmvisser/simplesamlphp,jschlyter/simplesamlphp,ghalse/simplesamlphp,simplesamlphp/simplesamlphp,sitya/simplesamlphp,ghalse/simplesamlphp,dnmvisser/simplesamlphp