# onHTTPSessionCreate never called, but onHTTPSessionDestroy in 4.4.1

**URL:** <https://community.wowza.com/t/onhttpsessioncreate-never-called-but-onhttpsessiondestroy-in-4-4-1/35631>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [June 10, 2016, 2:46pm UTC](https://community.wowza.com/t/onhttpsessioncreate-never-called-but-onhttpsessiondestroy-in-4-4-1/35631 "2016-06-10T14:46:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tom\_Tom](https://avatars.discourse-cdn.com/v4/letter/t/c57346/32.png) [@Tom\_Tom](https://community.wowza.com/u/Tom_Tom)\
**Post date:** [June 10, 2016, 2:46pm UTC](https://community.wowza.com/t/onhttpsessioncreate-never-called-but-onhttpsessiondestroy-in-4-4-1/35631/1 "2016-06-10T14:46:17Z")

</div>

Hi,

I’ve even also a Module which should secure the session during HTTP Streaming.

The same module works greate in Wowza 3.x but now, I’m testing Wowza 4.4.1, it won’t work.

When I debug my methods I can see that a _onSessionDestroy_ is called, but the _onHTTPSessionCreate_ never.

Are there any interface or method Name changes which I’ve probably not seen??😕

The Module runs on a LiveEdge Application which connects on

rtmp://10.10.23.114/sectest

to an Origin Server (without this module).

```auto
public class AccessControlHttpStreaming extends ModuleBase {
	private static final Log	logger	= LogFactory.getLog(AccessControlHttpStreaming.class);
	public void onHTTPSmoothStreamingSessionCreate(HTTPStreamerSessionSmoothStreamer httpSmoothStreamingSession) {
		onSessionCreate(new InternalSmoothStreamerSession(httpSmoothStreamingSession), httpSmoothStreamingSession.getIpAddress());
	}
	public void onRTPSessionCreate(RTPSession rtpSession) {
		onSessionCreate(new InternalRTPSession(rtpSession), rtpSession.getIp());
	}
	public void onHTTPSessionCreate(IHTTPStreamerSession httpSession) {
		onSessionCreate(new InternalHTTPSession(httpSession, false, httpSession.getIpAddress());
	}
	public void onHTTPSessionDestroy(IHTTPStreamerSession session) {
		onSessionDestroy(new InternalHTTPSession(session, null));
	}
	public void onSessionDestroy(IInternalSession session) {
		final Set<String> removeFromKeys = SecureManager.unbindSessionID(session.getSessionID());
		// DO SOME CRAZY STUFF
		session.rejectSession();
	}
	public void onSessionCreate(final InternalHTTPSession session, String ipAddress) {
		// DO SOME REALLY CRAZY STUFF
	}
}

```

For Testings I’ve run that Module just on the Origin and it works…

Thanks a lot,

Tom

---

<div class="post-metadata">

**Author:** ![Tom\_Tom](https://avatars.discourse-cdn.com/v4/letter/t/c57346/32.png) [@Tom\_Tom](https://community.wowza.com/u/Tom_Tom)\
**Post date:** [June 10, 2016, 3:43pm UTC](https://community.wowza.com/t/onhttpsessioncreate-never-called-but-onhttpsessiondestroy-in-4-4-1/35631/2 "2016-06-10T15:43:02Z")

</div>

Ok, closed…

What a simple solution… I’ve made a mistake,

forgotten to define _definst_

Could not delete this thread…
