# Join a room using session ID

**URL:** <https://devforum.zoom.us/t/join-a-room-using-session-id/117268>\
**Category:** Video SDK\
**Tags:** video-sdk\
**Created:** [September 11, 2024, 3:56am UTC](https://devforum.zoom.us/t/join-a-room-using-session-id/117268 "2024-09-11T03:56:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![it.apps2](https://avatars.discourse-cdn.com/v4/letter/i/47e85d/32.png) [@it.apps2](https://devforum.zoom.us/u/it.apps2)\
**Post date:** [September 11, 2024, 3:56am UTC](https://devforum.zoom.us/t/join-a-room-using-session-id/117268/1 "2024-09-11T03:56:06Z")

</div>

Hi, i’m using the Video SDK Web, i just noticed that it will generate more than 1 video if i left the room and rejoined the room again with the same topic and password, my question is : is it possible that if i rejoin the same video/ room using the same topic, password or session id even i just leave the room?

please help me, many thanks in advance!

---

<div class="post-metadata">

**Author:** ![rehema.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rehema.zoom/32/40323_2.png) [@rehema.zoom](https://devforum.zoom.us/u/rehema.zoom)\
**Post date:** [September 11, 2024, 5:04pm UTC](https://devforum.zoom.us/t/join-a-room-using-session-id/117268/2 "2024-09-11T17:04:35Z")

</div>

Hi @it.apps2 ,

Within your code, are you calling the leave method on your client (`client.leave()`) when you exit the session?

Thanks,  
Rehema

---

<div class="post-metadata">

**Author:** ![it.apps2](https://avatars.discourse-cdn.com/v4/letter/i/47e85d/32.png) [@it.apps2](https://devforum.zoom.us/u/it.apps2)\
**Post date:** [September 12, 2024, 3:23am UTC](https://devforum.zoom.us/t/join-a-room-using-session-id/117268/3 "2024-09-12T03:23:20Z")

</div>

Hi Rehema,

Yes, i am using (client.leave( )) method when leave the room. so it was the problem ?  
is there any other options for leaving the room without end the session ?

many thanks for your help

---

<div class="post-metadata">

**Author:** ![rehema.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rehema.zoom/32/40323_2.png) [@rehema.zoom](https://devforum.zoom.us/u/rehema.zoom)\
**Post date:** [September 12, 2024, 3:00pm UTC](https://devforum.zoom.us/t/join-a-room-using-session-id/117268/4 "2024-09-12T15:00:53Z")

</div>

Hi @it.apps2 ,

Calling the client will not automatically end the session, unless you are host and pass in the parameter `end: true`. So, your session is not ended when you leave.

Thanks,  
Rehema

---

<div class="post-metadata">

**Author:** ![it.apps2](https://avatars.discourse-cdn.com/v4/letter/i/47e85d/32.png) [@it.apps2](https://devforum.zoom.us/u/it.apps2)\
**Post date:** [September 13, 2024, 2:43am UTC](https://devforum.zoom.us/t/join-a-room-using-session-id/117268/5 "2024-09-13T02:43:36Z")

</div>

Hi @rehema.zoom,  
yup, i already using client.leave( ) method without passing any parameter(empty) when i leave the room, but when i tried to rejoin the room again using the same topic it will generate new session id again( it got more than 1 session id with the same topic when i checked the recordings cloud result). do you have any solutions for this ?

thanks in advance!.

---

<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:** [September 14, 2024, 2:39am UTC](https://devforum.zoom.us/t/join-a-room-using-session-id/117268/6 "2024-09-14T02:39:26Z")

</div>

Hey @it.apps2

Topics are reusable.

When a session with the same topic is in progress, it will join that session; otherwise, a new session will be created.

The situation you mentioned may occur when the `client.leave` is called and it’s the last user in the session. The next time a session with the same topic is joined, a new session will be created, resulting in a new session ID.

> **[Video SDK - web - Sessions](https://developers.zoom.us/docs/video-sdk/web/sessions/#join-parameters)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

Thanks  
Vic
