示例#1
0
        /// <summary>
        /// Updates the authentication cookie.
        /// </summary>
        /// <param name="userBasic">The user basic.</param>
        public void UpdateAuthenticationCookie(IUserBasic userBasic)
        {
            WMUserIdentity identity = WMUserIdentity.Create(userBasic, true, DateTime.UtcNow, DateTime.UtcNow);

            AuthenticationCookieManager.UpdateAuthenticationCookie <WMUserIdentity>(
                _WorkmateMembershipProvider.AuthenticationTimeoutInSeconds
                , _WorkmateMembershipProvider.PersistentAuthenticationTimeoutInSeconds
                , identity);
        }