@ Nonnull public String createSessionId ( @ Nonnull final String sessionId , @ Nullable final String memcachedId ) { if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( "Creating new session id with orig id '" + sessionId + "' and memcached id '" + memcachedId + "'." ) ; } if ( memcachedId == null ) { return sessionId ; } final int idx = sessionId . indexOf ( ' ' ) ; if ( idx < 0 ) { return sessionId + "-" + memcachedId ; } else { return sessionId . substring ( 0 , idx ) + "-" + memcachedId + sessionId . substring ( idx ) ; } }
Create a session id including the provided memcachedId .