Guard against legacy session identifiers.