# How to confirm that a viewing session is ended

**URL:** <https://community.wowza.com/t/how-to-confirm-that-a-viewing-session-is-ended/96446>\
**Category:** Wowza Streaming Engine\
**Created:** [August 30, 2023, 4:51pm UTC](https://community.wowza.com/t/how-to-confirm-that-a-viewing-session-is-ended/96446 "2023-08-30T16:51:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![STEMI\_TW](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@STEMI\_TW](https://community.wowza.com/u/STEMI_TW)\
**Post date:** [August 30, 2023, 4:51pm UTC](https://community.wowza.com/t/how-to-confirm-that-a-viewing-session-is-ended/96446/1 "2023-08-30T16:51:55Z")

</div>

I am writing a bash scipt to do a simple wowza\_access.log parsing, somewhat like top command, to show the real time clients event and duration status.  
I found that a testing video player (jwplayer) still viewing the video stream, but the same client IP and same client-id will trigger some ‘stop’ ‘destroy’ ‘disconnect’ events even the video is still playing.

How do I decide that the player has stopped or even browser is closed? so that I can treat that session ended? what is the log messages that confirm this?

Thanks in advance  
Cheers  
Joshua
