# OpenVidu Web Component: Check if Session is Active or Not

**URL:** <https://openvidu.discourse.group/t/openvidu-web-component-check-if-session-is-active-or-not/1396>\
**Category:** Issues developing apps\
**Tags:** v2\
**Created:** [July 7, 2020, 1:01pm UTC](https://openvidu.discourse.group/t/openvidu-web-component-check-if-session-is-active-or-not/1396 "2020-07-07T13:01:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![umargarga](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/umargarga/32/638_2.png) [@umargarga](https://openvidu.discourse.group/u/umargarga)\
**Post date:** [July 7, 2020, 1:01pm UTC](https://openvidu.discourse.group/t/openvidu-web-component-check-if-session-is-active-or-not/1396/1 "2020-07-07T13:01:06Z")

</div>

Greetings all,

Is there a way to check if session is active or not. I want to use this feature to let participant in to the meeting after a publisher has published the meeting.

If I didn’t do this, any participant can start a meeting (Which I don’t want them to)

Thanks.

---

<div class="post-metadata">

**Author:** ![mihailj](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/mihailj/32/406_2.png) [@mihailj](https://openvidu.discourse.group/u/mihailj)\
**Post date:** [July 7, 2020, 1:28pm UTC](https://openvidu.discourse.group/t/openvidu-web-component-check-if-session-is-active-or-not/1396/2 "2020-07-07T13:28:45Z")

</div>

Hello,

1. You **MUST** have a back-end API (in production)

2. Call the OpenVidu REST API ‘_Retrieve active session info_’ method from your back-end API (CURL, whatever…)

[https://docs.openvidu.io/en/2.15.0/reference-docs/REST-API/#get-apisessionsltsession\_idgt](https://docs.openvidu.io/en/2.15.0/reference-docs/REST-API/#get-apisessionsltsession_idgt)

1. Profit? 🙂 Check the HTTP response code and send it over from your back-end to your front-end and allow the participant to join or not according to that

Regards,  
Mihail

---

<div class="post-metadata">

**Author:** ![umargarga](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/umargarga/32/638_2.png) [@umargarga](https://openvidu.discourse.group/u/umargarga)\
**Post date:** [July 9, 2020, 6:50pm UTC](https://openvidu.discourse.group/t/openvidu-web-component-check-if-session-is-active-or-not/1396/3 "2020-07-09T18:50:40Z")

</div>

Thank you so much for the information
