/** * {@inheritDoc} */ @Override public String generateSessionId() { return _msm.newSessionId( super.generateSessionId() ); }
/** * {@inheritDoc} */ @Override public String generateSessionId() { return _msm.newSessionId( super.generateSessionId() ); }
/** * {@inheritDoc} */ @Override public String generateSessionId() { return _msm.newSessionId( super.generateSessionId() ); }
/** * {@inheritDoc} */ @Override public String generateSessionId() { return _msm.newSessionId( super.generateSessionId() ); }
/** * {@inheritDoc} */ @Override public void start() throws LifecycleException { if( ! initialized ) { init(); } // Validate and update our current component state if (_started) { return; } _lifecycle.fireLifecycleEvent(START_EVENT, null); _started = true; // Force initialization of the random number generator if (log.isDebugEnabled()) { log.debug("Force random number initialization starting"); } super.generateSessionId(); if (log.isDebugEnabled()) { log.debug("Force random number initialization completed"); } startInternal( null ); }
/** * Generate and return a new session identifier. * Hercules:modified */ protected synchronized String generateSessionId() { return generateSessionId(new Object()); }
/** * Change the session ID of the current session to a new randomly generated * session ID. * * @param session The session to change the session ID for */ @Override public void changeSessionId(Session session) { String newId = generateSessionId(); changeSessionId(session, newId, true, true); }
/** * Change the session ID of the current session to a new randomly generated * session ID. * * @param session The session to change the session ID for */ public void changeSessionId(Session session) { session.setId(generateSessionId()); }
@Override public void changeSessionId(Session session) { String newId = generateSessionId(); changeSessionId(session, newId, true, true); }
/** * Change the session ID of the current session to a new randomly generated * session ID. * * @param session The session to change the session ID for */ @Override public void changeSessionId(Session session) { session.setId(generateSessionId()); }
/** * Change the session ID of the current session to a new randomly generated * session ID. * * @param session The session to change the session ID for */ public void changeSessionId(Session session, Random random) { session.setId(generateSessionId(random)); }
/** * Change the session ID of the current session to a new randomly generated * session ID. * * @param session The session to change the session ID for */ public void changeSessionId(Session session) { session.setId(generateSessionId()); }
/** * Change the session ID of the current session to a new randomly generated * session ID. * * @param session The session to change the session ID for */ @Override public void changeSessionId(Session session) { session.setId(generateSessionId()); }
/** * {@inheritDoc} */ @Override public String generateSessionId() { return _msm.newSessionId( super.generateSessionId() ); }
@Override public void changeSessionId(Session session) { String newId = generateSessionId(); changeSessionId(session, newId, true, true); }
/** * Change the session ID of the current session to a new randomly generated * session ID. * * @param session The session to change the session ID for */ @Override public void changeSessionId(Session session) { session.setId(generateSessionId()); }
/** * Change the session ID of the current session to a new randomly generated * session ID. * * @param session The session to change the session ID for */ @Override public void changeSessionId(Session session) { String oldId = session.getIdInternal(); session.setId(generateSessionId(), false); String newId = session.getIdInternal(); container.fireContainerEvent(Context.CHANGE_SESSION_ID_EVENT, new String[] {oldId, newId}); }
/** * Change the session ID of the current session to a new randomly generated * session ID. * * @param session The session to change the session ID for */ @Override public void changeSessionId(Session session) { String oldId = session.getIdInternal(); session.setId(generateSessionId(), false); String newId = session.getIdInternal(); container.fireContainerEvent(Context.CHANGE_SESSION_ID_EVENT, new String[] {oldId, newId}); }
@Override protected String generateSessionId() { String sessionId = null; while (sessionId == null) { sessionId = prefixJvmRoute(super.generateSessionId()); if (getClient().exists(generateRedisSessionKey(sessionId))) { log.debug("Rejecting duplicate sessionId: " + sessionId); sessionId = null; } else { log.debug("Generated new sessionId: " + sessionId); } } return sessionId; }
@Override public Session createSession(String sessionId) { if ((maxActiveSessions >= 0) && (getActiveSessions() >= maxActiveSessions)) { rejectedSessions++; throw new TooManyActiveSessionsException( sm.getString("managerBase.createSession.ise"), maxActiveSessions); } // Recycle or create a Session instance Session session = createEmptySession(); // Initialize the properties of the new session and return it session.setNew(true); session.setValid(true); session.setCreationTime(System.currentTimeMillis()); session.setMaxInactiveInterval(getContext().getSessionTimeout() * 60); String id = sessionId; if (id == null) { id = generateSessionId(); } session.setId(id); sessionCounter++; SessionTiming timing = new SessionTiming(session.getCreationTime(), 0); synchronized (sessionCreationTiming) { sessionCreationTiming.add(timing); sessionCreationTiming.poll(); } return session; }