public static Session create ( SessionStore sessionStore , HttpRequest < ? > request ) { Session session = sessionStore . newSession ( ) ; request . getAttributes ( ) . put ( HttpSessionFilter . SESSION_ATTRIBUTE , session ) ; return session ; }
Creates a session and stores it in the request attributes .