Remove session to allow `with_routing` to be called twice.

Fixes: https://github.com/rails/rails/issues/16814
Merge pull request #17523 from tgxworld/reset_session_after_calling_with_routing

Remove session to allow `with_routing` to be called twice.