public static void registerUserSession ( final String _userName , final String _sessionId ) { if ( EFapsApplication . getMaxInactiveInterval ( ) > 0 ) { RegistryManager . getCache ( ) . put ( _sessionId , new UserSession ( ) . setUserName ( _userName ) . setSessionId ( _sessionId ) , - 1 , TimeUnit . MINUTES , EFapsApplication . getMaxInactiveInterval ( ) + 600 , TimeUnit . SECONDS ) ; } else { RegistryManager . getCache ( ) . put ( _sessionId , new UserSession ( ) . setUserName ( _userName ) . setSessionId ( _sessionId ) ) ; } RegistryManager . registerLogin4History ( _userName , _sessionId ) ; }
Register user session .