auto url detection, logout in Auth and sockets