Added getSessionId API method