private void addValidLoadedSession( final StandardSession session, final boolean activate ) { // make sure the listeners know about it. (as done by PersistentManagerBase) if ( session.isNew() ) { session.tellNew(); } _manager.add( session ); if ( activate ) { session.activate(); } // endAccess() to ensure timeouts happen correctly. // access() to keep access count correct or it will end up // negative session.access(); session.endAccess(); }
/** * Set the session identifier for this session. * * @param id The new session identifier */ public void setId(String id) { if ((this.id != null) && (manager != null)) manager.remove(this); this.id = id; if (manager != null) manager.add(this); tellNew(); }
/** * {@inheritDoc} */ @Override public void setId(String id, boolean notify) { if ((this.id != null) && (manager != null)) manager.remove(this); this.id = id; if (manager != null) manager.add(this); if (notify) { tellNew(); } }
/** * {@inheritDoc} */ @Override public void setId(String id, boolean notify) { if ((this.id != null) && (manager != null)) manager.remove(this); this.id = id; if (manager != null) manager.add(this); if (notify) { tellNew(); } }
/** * Set the session identifier for this session. * * @param id The new session identifier */ @Override public void setId(String id) { if ((this.id != null) && (manager != null)) manager.remove(this); this.id = id; if (manager != null) manager.add(this); tellNew(); }
/** * {@inheritDoc} */ @Override public void setId(String id, boolean notify) { if ((this.id != null) && (manager != null)) manager.remove(this); this.id = id; if (manager != null) manager.add(this); if (notify) { tellNew(); } }
/** * Set the session identifier for this session. * * @param id The new session identifier */ public void setId(String id) { if ((this.id != null) && (manager != null)) manager.remove(this); this.id = id; if (manager != null) manager.add(this); tellNew(); }
/** * {@inheritDoc} */ @Override public void setId(String id, boolean notify) { if ((this.id != null) && (manager != null)) manager.remove(this); this.id = id; if (manager != null) manager.add(this); if (notify) { tellNew(); } }
/** * Set the session identifier for this session. * * @param id The new session identifier */ @Override public void setId(String id) { if ((this.id != null) && (manager != null)) manager.remove(this); this.id = id; if (manager != null) manager.add(this); tellNew(); }
/** * Set the session identifier for this session. * * @param id The new session identifier */ @Override public void setId(String id) { if ((this.id != null) && (manager != null)) manager.remove(this); this.id = id; if (manager != null) manager.add(this); tellNew(); }
/** * {@inheritDoc} */ @Override public void setId(String id, boolean notify) { if ((this.id != null) && (manager != null)) manager.remove(this); this.id = id; if (manager != null) manager.add(this); if (notify) { tellNew(); } }
/** * Set the session identifier for this session. * * @param id The new session identifier */ public void setId(String id) { if ((this.id != null) && (manager != null)) manager.remove(this); String oldId = this.id; this.id = id; if (manager != null) manager.add(this); if (oldId == null) { tellNew(); } else { // Notify interested session event listeners fireSessionEvent(Session.SESSION_ID_CHANGED_EVENT, oldId); } }
((StandardSession)session).tellNew(); add(session); ((StandardSession)session).activate();
private void addValidLoadedSession( final StandardSession session, final boolean activate ) { // make sure the listeners know about it. (as done by PersistentManagerBase) if ( session.isNew() ) { session.tellNew(); } _manager.add( session ); if ( activate ) { session.activate(); } // endAccess() to ensure timeouts happen correctly. // access() to keep access count correct or it will end up // negative session.access(); session.endAccess(); }
((StandardSession)session).tellNew(); add(session); ((StandardSession)session).activate();
tellNew(); } else { // change session id HttpSessionEvent event = null;
private void reactivateLoadedSession(String id, Session session) { if(log.isDebugEnabled()) log.debug(sm.getString("persistentManager.swapIn", id)); session.setManager(this); // make sure the listeners know about it. ((StandardSession)session).tellNew(); add(session); ((StandardSession)session).activate(); // endAccess() to ensure timeouts happen correctly. // access() to keep access count correct or it will end up // negative session.access(); session.endAccess(); }
private void reactivateLoadedSession(String id, Session session) { if(log.isDebugEnabled()) log.debug(sm.getString("persistentManager.swapIn", id)); session.setManager(this); // make sure the listeners know about it. ((StandardSession)session).tellNew(); add(session); ((StandardSession)session).activate(); // endAccess() to ensure timeouts happen correctly. // access() to keep access count correct or it will end up // negative session.access(); session.endAccess(); }
((StandardSession)session).tellNew(); add(session); ((StandardSession)session).activate();
((StandardSession)session).tellNew(); add(session); ((StandardSession)session).activate();