Support changing session data in ActionDispatch::Integration

Fixes #18222