Exemplo n.º 1
0
        public static void Sair()
        {
            if (EstaLogado)
            {
                HttpCookie cookieDeAutenticacao = HttpContext.Current.Request.Cookies.Get(COOKIE_AUTENTICACAO);

                _usuariosLogados.Remove(cookieDeAutenticacao.Value);

                cookieDeAutenticacao.Expirar();

                HttpContext.Current.Session.Abandon();
            }
        }