@ Override public Session newSession ( String id ) { long created = System . currentTimeMillis ( ) ; Session session = sessionCache . newSession ( id , created , ( defaultMaxIdleSecs > 0 ? defaultMaxIdleSecs * 1000L : - 1 ) ) ; try { sessionCache . put ( id , session ) ; sessionsCreatedStats . increment ( ) ; for ( SessionListener listener : sessionListeners ) { listener . sessionCreated ( session ) ; } return session ; } catch ( Exception e ) { log . warn ( "Failed to create a new session" , e ) ; return null ; } }
Create an entirely new Session .