Here is the HttpSessionState property , which you can use called IsNewSession , for example:
if(Context.Session != null && Context.Session.IsNewSession) {
//do something, session was created this request
}
You can only do this after the session state is available, but from what you are doing in your module, this does not seem to be a problem, please comment if that is the case.
source
share