Class SessionCreationInterceptor

java.lang.Object
org.atmosphere.cpr.AtmosphereInterceptorAdapter
org.atmosphere.interceptor.SessionCreationInterceptor
All Implemented Interfaces:
AtmosphereInterceptor, AtmosphereConfigAware, InvokationOrder

public class SessionCreationInterceptor extends AtmosphereInterceptorAdapter
An interceptor that create an HttpSession on the fist received request so transport like long-polling can share the session with request coming after the suspend operation. Without this and because with long-polling cookies aren't read by the browser until the response is resumed, the session id will not be the same so session couldn't be used.
Author:
Jeanfrancois Arcand