extract the url, drop and get sessionId