Question: why jsessionid is appended to the url?
Answer: To ensure that no session data is lost, BrowserHawk calls response. encodeURL() on the URL it uses for the redirection. If the server decides it needs to add a jsessionid, then the jsessionid is added so session information isn't lost.