private function __construct() { // Start a session and set the session id. if (session_id() == '') { session_start(); $this->sessionId = session_id(); } }