コード例 #1
0
 public void Logout()
 {
     _client.Logout();
     // If the user chose to "Remember Me" while authenticating with google, then
     // the credentials are stored in cookies. We need to clear the cookies
     // to fully logout the user.
     foreach (var cookie in NSHttpCookieStorage.SharedStorage.Cookies)
     {
         NSHttpCookieStorage.SharedStorage.DeleteCookie(cookie);
     }
 }
コード例 #2
0
        public void Logout()
        {
            _client.Logout();
            // If the user chose to "Remember Me" while authenticating with google, then
            // the credentials are stored in cookies. We need to clear the cookies
            // to fully logout the user.
            CookieManager cookieManager = CookieManager.Instance;

            if (cookieManager != null)
            {
                cookieManager.RemoveAllCookie();
            }
        }