Sholo.Web.Security/Authentication/User/Provider/CacheUserAuthenticationTicketProvider.cs
/// <summary>
/// Removes the ticket from the collection if it exists.  If the ticket does not
/// exist in the ticket store, just return (do not throw an exception).
/// </summary>
/// <param name="userAuthenticationTicketKey">The ticket to remove from the ticket store</param>
/// <exception cref="ArgumentNullException">userAuthenticationTicketKey is null</exception>
/// <exception cref="ArgumentException">userAuthenticationTicketKey is empty</exception>
Removes the ticket from the collection if it exists.  If the ticket does not
exist in the ticket store, just return (do not throw an exception).
Removes the ticket from the collection if it exists . If the ticket does not exist in the ticket store just return ( do not throw an exception ) .
public override void RevokeTicket(string userAuthenticationTicketKey)
        {
            if (userAuthenticationTicketKey == null)
            {
                throw new ArgumentNullException("userAuthenticationTicketKey", "userAuthenticationTicketKey parameter cannot be null or empty.");
            }
            if (string.IsNullOrEmpty(userAuthenticationTicketKey))
            {
                throw new ArgumentException("userAuthenticationTicketKey parameter cannot be null or empty.", "userAuthenticationTicketKey");
            }
            string key = GetCacheKey(userAuthenticationTicketKey);
            if (HttpContext.Current.Cache[key] != null)
            {
                UserAuthenticationTicket ticket = HttpContext.Current.Cache[key] as UserAuthenticationTicket;
                if (ticket != null)
                {
                    if (HttpContext.Current.Cache[key] != null)
                    {
                        HttpContext.Current.Cache.Remove(key);
                    }
                }
            }
        }
public override void RevokeTicket ( string userAuthenticationTicketKey ) { if ( userAuthenticationTicketKey == null ) { throw new ArgumentNullException ( " " , " " ) ; } if ( string . IsNullOrEmpty ( userAuthenticationTicketKey ) ) { throw new ArgumentException ( " " , " " ) ; } string key = GetCacheKey ( userAuthenticationTicketKey ) ; if ( HttpContext . Current . Cache [ key ] != null ) { UserAuthenticationTicket ticket = HttpContext . Current . Cache [ key ] as UserAuthenticationTicket ; if ( ticket != null ) { if ( HttpContext . Current . Cache [ key ] != null ) { HttpContext . Current . Cache . Remove ( key ) ; } } } }
Removes the ticket from the collection if it exists.
Removes the ticket from the collection if it exists .
userAuthenticationTicketKey is null
userAuthenticationTicketKey is null
userAuthenticationTicketKey is empty
userAuthenticationTicketKey is empty
userAuthenticationTicketKey
string
The ticket to remove from the ticket store
The ticket to remove from the ticket store