for issue #7,
will check whether there is a cookie in a local folder,
if has a cookie, it will load it to the session.
Therefore, no need to relogin each time you open the program.
for issue #1,
has fix the mismatch problem.