# Session Lifecycle

**URL:** <https://openvidu.discourse.group/t/session-lifecycle/103>\
**Category:** Issues developing apps\
**Tags:** v2\
**Created:** [January 29, 2020, 8:08pm UTC](https://openvidu.discourse.group/t/session-lifecycle/103 "2020-01-29T20:08:27Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![rohit.roy](https://avatars.discourse-cdn.com/v4/letter/r/eada6e/32.png) [@rohit.roy](https://openvidu.discourse.group/u/rohit.roy)\
**Post date:** [September 9, 2020, 4:36am UTC](https://openvidu.discourse.group/t/session-lifecycle/103/6 "2020-09-09T04:36:38Z")

</div>

@mihailj Yes, Fore closing option is there but i faced the situation where Delete Session API sometimes return 500 Internal server error and does not close the session. This is one of the Random problem which i’ve faced so far with Openvidu, any idea about the issue which i have raised here

> [@Getting 500 error code while deleting Session from Inspector](https://openvidu.discourse.group/t/getting-500-error-code-while-deleting-session-from-inspector/1980):
>
> I faced some strange issue on OpenVidu Pro, Neither Session nor Recording closed. Recording generated with 0 byte before the actual session close and in the same time session was going on and Recording Status was ON in the Inspector panel, to reconfirm whether recording file is being generated on Media node or not, i checked on Media node and found Recording file was there for this ongoing session. This session was for 2 hours, after 2 hours when Teacher ended the session. Session didn’t close…

---

_[View the full topic](https://openvidu.discourse.group/t/session-lifecycle/103)._
