To save a session:
The debugger saves the session information.
Alternatively, you can use the idb session save command as follows:
idb session save session_file