# Configurable timeout after host leaves the session

**URL:** <https://devforum.zoom.us/t/configurable-timeout-after-host-leaves-the-session/66450>\
**Category:** Web\
**Created:** [March 25, 2022, 4:22pm UTC](https://devforum.zoom.us/t/configurable-timeout-after-host-leaves-the-session/66450 "2022-03-25T16:22:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ol\_mas](https://avatars.discourse-cdn.com/v4/letter/o/f14d63/32.png) [@ol\_mas](https://devforum.zoom.us/u/ol_mas)\
**Post date:** [March 25, 2022, 4:22pm UTC](https://devforum.zoom.us/t/configurable-timeout-after-host-leaves-the-session/66450/1 "2022-03-25T16:22:03Z")

</div>

**Description**

According to changeLog for 1.2.0 version:  
" \* The original host has the following privileges: the session ends after a configurable timeout after the original host leaves a session, if a new host was not assigned."

How does one set this parameter: configurable tiemout? It is the same as `sessionIdleTimeoutMins` passed when client.join?

**Which Web Video SDK version?**  
1.2.0

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [March 28, 2022, 8:00am UTC](https://devforum.zoom.us/t/configurable-timeout-after-host-leaves-the-session/66450/2 "2022-03-28T08:00:23Z")

</div>

Hey @ol_mas

Thanks for your feedback.

`sessionIdleTimeoutMins` is used in such scenarios to prevent unnecessary usage costs when only one user is in the session but does not actively end the session. The default idle time is 40 minutes and only the original host can set this value.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![ol\_mas](https://avatars.discourse-cdn.com/v4/letter/o/f14d63/32.png) [@ol\_mas](https://devforum.zoom.us/u/ol_mas)\
**Post date:** [March 28, 2022, 8:25am UTC](https://devforum.zoom.us/t/configurable-timeout-after-host-leaves-the-session/66450/3 "2022-03-28T08:25:27Z")

</div>

Thanks @vic.yang ,

But is it the same time after which the users are disconnected after the host has left?  
I need all users to leave session immediately after the host has left. What is the best way to achieve that then?

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [March 29, 2022, 7:30am UTC](https://devforum.zoom.us/t/configurable-timeout-after-host-leaves-the-session/66450/4 "2022-03-29T07:30:17Z")

</div>

Hey @ol_mas

For your case, I suggest you can listen to the `user-removed` event, and check the leaving user is the host (through `userId` or `displayName`). But there is an exception , when the host rejoined from short-term network disconnection, the `userId` will be changed.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [April 28, 2022, 5:30pm UTC](https://devforum.zoom.us/t/configurable-timeout-after-host-leaves-the-session/66450/5 "2022-04-28T17:30:38Z")

</div>

Closed on April 28, 2022, 5:30pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
