Added auth, no cookie needed
Added auto-logout on __del__