# Session\_key not behaving as expected

**URL:** <https://devforum.zoom.us/t/session-key-not-behaving-as-expected/68287>\
**Category:** Web\
**Created:** [April 28, 2022, 7:10pm UTC](https://devforum.zoom.us/t/session-key-not-behaving-as-expected/68287 "2022-04-28T19:10:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shoaib](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shoaib/32/28580_2.png) [@shoaib](https://devforum.zoom.us/u/shoaib)\
**Post date:** [April 28, 2022, 7:10pm UTC](https://devforum.zoom.us/t/session-key-not-behaving-as-expected/68287/1 "2022-04-28T19:10:18Z")

</div>

Hey @vic.yang , @tommy ,

What is the role of providing `session_key` in payload while generating [signature](https://marketplace.zoom.us/docs/sdk/video/web/build/signature/#nodejs-generate-signature-function)?  
According to docs It seems like by providing `session_key` (with `role_type`=1), it should be like **session ID = session\_key** but still the session ID is randomly generated even after providing `session_key` in the payload of signature.  
Tested in VideoSDK [Sample App](https://github.com/zoom/sample-app-videosdk) with VideoSDK: 1.2.5.

Also, If the role of providing `session_key` is something different then Is it possible to have custom Session ID in any other way?

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 28, 2022, 8:05pm UTC](https://devforum.zoom.us/t/session-key-not-behaving-as-expected/68287/2 "2022-04-28T20:05:31Z")

</div>

Hey @shoaib ,

The Session ID is generated by Zoom.  
The Session Key is an optional value you can set to identify your own sessions using your own identifiers.

Thanks,  
Tommy

---

<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:** [May 29, 2022, 6:05am UTC](https://devforum.zoom.us/t/session-key-not-behaving-as-expected/68287/3 "2022-05-29T06:05:32Z")

</div>

Closed on May 29, 2022, 6:05am UTC

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