It's in both.
The hardware is placed in the route, but the software i.e., the setup is done in the session.
…….
Hint: When setting up the portals in the session, I highly recommend using the Schedule Library and Copy Commands from related driver command, as well as using saved consists. This saves a lot of time when setting up the drivers even for simple operations.