示例#1
0
        public void WriteLoginState(Identity identity)
        {
            var tokenValue = this.Authentication.IdentityToTokenString(identity);

            HttpUtils.AddCookie(this.TokenKeyName, tokenValue, 60 * 24 * 30);
        }