Session expiration timeout

We use OpenVidu v2.18.0 and the session is automatically closed at once (without timeout) when all participants leave the session.

Usedd mentioned configurations.
OPENVIDU_SESSIONS_GARBAGE_INTERVAL=900
OPENVIDU_SESSIONS_GARBAGE_THRESHOLD=3600

How can setup timeout , I want the session not to be closed immediately

When you create a session for the first time, it remains open as a non-active session if no participants join, until the OPENVIDU_SESSIONS_GARBAGE_THRESHOLD is reached.

Once a participant joins, the session becomes active and will automatically close when the last participant leaves.

If you want to reuse the session after the last participant leaves, you will need to recreate it. This is the intended behavior.