Add logic for JSESSIONID in Cookie and check return code.