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

Requires tests+docs.