[hshan] Fix bugs about login and add CookieManager