in src/DynamoDBSessionStateStore.cs [681:701]
public override void RemoveItem(HttpContext context, string sessionId, object lockId, SessionStateStoreData item)
{
LogInfo("RemoveItem", sessionId, lockId, context);
if (lockId == null)
{
deleteItem(sessionId);
}
else
{
Document doc = this._table.GetItem(GetHashKey(sessionId), CONSISTENT_READ_GET);
if (doc.Contains(ATTRIBUTE_LOCK_ID))
{
string currentLockId = (string)doc[ATTRIBUTE_LOCK_ID];
if (string.Equals(currentLockId, lockId))
{
deleteItem(sessionId);
}
}
}
}