suppress warning if session already active (trace logs the password)

This commit is contained in:
Ralf Becker 2020-02-26 13:45:21 +01:00
parent e99c3368e6
commit deb482aca3

View File

@ -550,7 +550,10 @@ class Session
// --> allows this stateless protocolls which use basic auth to use sessions! // --> allows this stateless protocolls which use basic auth to use sessions!
if (($this->sessionid = self::get_sessionid(true))) if (($this->sessionid = self::get_sessionid(true)))
{ {
session_id($this->sessionid); if (session_status() !== PHP_SESSION_ACTIVE) // gives warning including password
{
session_id($this->sessionid);
}
} }
else else
{ {