Cookie + Autologin

Warning, there is non-stable code, must be tested