what happens behind the scene when we sign in or sign out