spring-framework / org.springframework.web.socket.server.support / HttpSessionHandshakeInterceptor / setCreateSession

setCreateSession

open fun setCreateSession(createSession: Boolean): Unit

Whether to allow the HTTP session to be created while accessing it.

By default set to false.

See Also
javax.servlet.http.HttpServletRequest#getSession(boolean)