# getting httpSession from IHTTPStreamerCupertinoVODActionNotify3 event

**URL:** <https://community.wowza.com/t/getting-httpsession-from-ihttpstreamercupertinovodactionnotify3-event/45718>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [September 3, 2015, 1:41pm UTC](https://community.wowza.com/t/getting-httpsession-from-ihttpstreamercupertinovodactionnotify3-event/45718 "2015-09-03T13:41:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Danijel\_Petrovic](https://avatars.discourse-cdn.com/v4/letter/d/a87d85/32.png) [@Danijel\_Petrovic](https://community.wowza.com/u/Danijel_Petrovic)\
**Post date:** [September 3, 2015, 1:41pm UTC](https://community.wowza.com/t/getting-httpsession-from-ihttpstreamercupertinovodactionnotify3-event/45718/1 "2015-09-03T13:41:05Z")

</div>

I want to reject session based on the number of chunks sent. I used _onFillChunkEnd_ event, and in there I rejected session like this: _fileIndex.getHttpStreamerSession().rejectSession();_

where fieInfo is _IHTTPStreamerCupertinoIndex_.

This indeed rejects the session, but my player is just stuck. If I used _HTTPStreamerSessionCupertino_ session object inside of _onHTTPCupertinoStreamingSessionCreate_ only thing I had to do is call _rejectSession()_ on it, and player would stop with message about stream not available. My question is what is the difference, and should I fire some event manually in order to let browser know that stream is done.

---

<div class="post-metadata">

**Author:** ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)\
**Post date:** [October 2, 2015, 10:19am UTC](https://community.wowza.com/t/getting-httpsession-from-ihttpstreamercupertinovodactionnotify3-event/45718/2 "2015-10-02T10:19:00Z")

</div>

Hello

I’d suggest alternatively counting requests on a per chunk level by using the following API set:

```auto
public void onHTTPStreamerRequest(IHTTPStreamerSession httpSession, IHTTPStreamerRequestContext reqContext)
public void onHTTPCupertinoStreamerRequest(HTTPStreamerSessionCupertino httpSession, HTTPStreamerCupertinoRequestContext reqContext)
public void onHTTPSanJoseStreamerRequest(HTTPStreamerSessionSanJose httpSession, HTTPStreamerSanJoseRequestContext reqContext)
public void onHTTPSmoothStreamingStreamerRequest(HTTPStreamerSessionSmoothStreamer httpSession, HTTPStreamerSmoothStreamingRequestContext reqContext)
public void onHTTPMPEGDashStreamerRequest(HTTPStreamerSessionMPEGDash httpSession, HTTPStreamerMPEGDashRequestContext reqContext)

```

With the previous method, I think its more relating to the chunks created by the packetizer vs being delivered to the client.

Thanks,

Matt
