Fixed cookie authentication

cookie loading and saving to file cookies.txt in addon_data directory

now the session is handled right.