Changed session form to url from path, suggestion from stackoverflow for fixing ssl issue