Construct a new session object with invalid capabilities filtered out, then deep-freeze it.
Server-level failures cause the capability to be removed from capabilities,
all account.accountCapabilities, and primaryAccounts.
Account-level failures cause the capability to be removed from that specific
account's accountCapabilities and, if the account was the primary for that
capability, from primaryAccounts.
Construct a new session object with invalid capabilities filtered out, then deep-freeze it.
capabilities, allaccount.accountCapabilities, andprimaryAccounts.accountCapabilitiesand, if the account was the primary for that capability, fromprimaryAccounts.