Used session for control logged in or out