Fixed #22986 -- Conditionally enable the `Session` model.

Requires tests+docs.