Amazon.SessionProvider.DynamoDBSessionStateStore.DeleteExpiredSessions C# (CSharp) Method

DeleteExpiredSessions() public static method

A utility method for cleaning up expired sessions that IIS failed to delete. The method performs a scan on the ASP.NET_SessionState table with a condition that the expiration date is in the past and calls delete on all the keys returned. Scans can be costly on performance so use this method sparingly like a nightly or weekly clean job.
public static DeleteExpiredSessions ( IAmazonDynamoDB dbClient ) : void
dbClient IAmazonDynamoDB The AmazonDynamoDB client used to find a delete expired sessions.
return void
        public static void DeleteExpiredSessions(IAmazonDynamoDB dbClient)
        {
            DeleteExpiredSessions(dbClient, DEFAULT_TABLENAME);
        }

Same methods

DynamoDBSessionStateStore::DeleteExpiredSessions ( IAmazonDynamoDB dbClient, string tableName ) : void