src/main/java/org/efaps/ui/wicket/connectionregistry/RegistryManager.java
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);
    }
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);
    }
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.

@param _userName the user name
@param _sessionId the session ID
Register user session .