added logic which makes the server re-login on auth session timeout