When the difference matters
An idle timeout saves money on a sandbox that sits unused. A session limit ends the run even when the code is busy. A short idle timeout can stop a sandbox between two agent steps, and the next request then waits for a start.
Which one to look for
Check the idle timeout value and whether you can change it. Check whether the provider sets a maximum session length. Check what survives a stop, such as files or memory.