@Override public int getMaxInactiveInterval() { return getContext().getSessionTimeout(); }
@Override public int getMaxInactiveInterval() { return getContext().getSessionTimeout(); }
@Override public Session createSession(String sessionId) { RedissonSession session = (RedissonSession) createEmptySession(); session.setNew(true); session.setValid(true); session.setCreationTime(System.currentTimeMillis()); session.setMaxInactiveInterval(((Context) getContainer()).getSessionTimeout() * 60); if (sessionId == null) { sessionId = generateSessionId(); } session.setManager(this); session.setId(sessionId); return session; }
@Override public Session createSession(String sessionId) { RedissonSession session = (RedissonSession) createEmptySession(); session.setNew(true); session.setValid(true); session.setCreationTime(System.currentTimeMillis()); session.setMaxInactiveInterval(((Context) getContainer()).getSessionTimeout() * 60); if (sessionId == null) { sessionId = generateSessionId(); } session.setManager(this); session.setId(sessionId); return session; }
@Override public Session createSession(String sessionId) { RedissonSession session = (RedissonSession) createEmptySession(); session.setNew(true); session.setValid(true); session.setCreationTime(System.currentTimeMillis()); session.setMaxInactiveInterval(getContext().getSessionTimeout() * 60); if (sessionId == null) { sessionId = generateSessionId(); } session.setManager(this); session.setId(sessionId); return session; }
@Override public Session createSession(String sessionId) { RedissonSession session = (RedissonSession) createEmptySession(); session.setNew(true); session.setValid(true); session.setCreationTime(System.currentTimeMillis()); session.setMaxInactiveInterval(getContext().getSessionTimeout() * 60); if (sessionId == null) { sessionId = generateSessionId(); } session.setManager(this); session.setId(sessionId); return session; }
/** * This method was taken from StandardManager to set the default maxInactiveInterval based on the * container (to 30 minutes). * <p> * Set the Container with which this Manager has been associated. If it is a Context (the usual * case), listen for changes to the session timeout property. * * @param container The associated Container */ @Override public void setContainer(Container container) { // De-register from the old Container (if any) if ((this.container != null) && (this.container instanceof Context)) { ((Context) this.container).removePropertyChangeListener(this); } // Default processing provided by our superclass super.setContainer(container); // Register with the new Container (if any) if ((this.container != null) && (this.container instanceof Context)) { // Overwrite the max inactive interval with the context's session timeout. setMaxInactiveInterval(((Context) this.container).getSessionTimeout() * 60); ((Context) this.container).addPropertyChangeListener(this); } }
/** * {@inheritDoc} */ @Override public void setContainer( final Container container ) { // De-register from the old Container (if any) if ( this.container != null && this.container instanceof Context ) { ( (Context) this.container ).removePropertyChangeListener( this ); } // Default processing provided by our superclass super.setContainer( container ); // Register with the new Container (if any) if ( this.container != null && this.container instanceof Context ) { setMaxInactiveInterval( ( (Context) this.container ).getSessionTimeout() * 60 ); ( (Context) this.container ).addPropertyChangeListener( this ); } }
app.setSessionTimeout(context.getSessionTimeout()); app.setServletVersion(context.getServletContext().getMajorVersion() + "." + context.getServletContext().getMinorVersion());
session.setMaxInactiveInterval( _manager.isMaxInactiveIntervalSet() ? _manager.getMaxInactiveInterval() : _manager.getContext().getSessionTimeout() * 60 );
@Override public void setContext(Context context) { // De-register from the old Context (if any) if (this.context != null) { this.context.removePropertyChangeListener(this); } Context oldContext = this.context; this.context = context; support.firePropertyChange("context", oldContext, this.context); // TODO - delete the line below in Tomcat 9 onwards support.firePropertyChange("container", oldContext, this.context); // Register with the new Context (if any) if (this.context != null) { setMaxInactiveInterval(this.context.getSessionTimeout() * 60); this.context.addPropertyChangeListener(this); } }
@Override public void setContainer(Container container) { log.trace(String.format("EXEC setContainer(%s);", container)); // De-register from the old Container (if any) if ((this.container != null) && (this.container instanceof Context)) { this.container.removePropertyChangeListener(this); } Container oldContainer = this.container; this.container = container; support.firePropertyChange("container", oldContainer, this.container); // Register with the new Container (if any) if ((this.container != null) && (this.container instanceof Context)) { setMaxInactiveInterval(((Context) this.container).getSessionTimeout() * 60); this.container.addPropertyChangeListener(this); } }
/** * Set the Container with which this Manager is associated. * * @param container The newly associated Container */ @Override public void setContainer(Container container) { // De-register from the old Container (if any) if ((this.container != null) && (this.container instanceof Context)) ((Context) this.container).removePropertyChangeListener(this); Container oldContainer = this.container; this.container = container; support.firePropertyChange("container", oldContainer, this.container); // Register with the new Container (if any) if ((this.container != null) && (this.container instanceof Context)) { setMaxInactiveInterval ( ((Context) this.container).getSessionTimeout()*60 ); ((Context) this.container).addPropertyChangeListener(this); } }
/** * Set the Container with which this Manager is associated. * * @param container The newly associated Container */ @Override public void setContainer(Container container) { // De-register from the old Container (if any) if ((this.container != null) && (this.container instanceof Context)) ((Context) this.container).removePropertyChangeListener(this); Container oldContainer = this.container; this.container = container; support.firePropertyChange("container", oldContainer, this.container); // Register with the new Container (if any) if ((this.container != null) && (this.container instanceof Context)) { setMaxInactiveInterval ( ((Context) this.container).getSessionTimeout()*60 ); ((Context) this.container).addPropertyChangeListener(this); } }
/* */ public void setContainer(Container container) /* */ { /* 165 */ if ((this.container != null) && ((this.container instanceof Context))) { /* 166 */ ((Context)this.container).removePropertyChangeListener(this); /* */ } /* */ /* 169 */ super.setContainer(container); /* */ /* 172 */ if ((this.container != null) && ((this.container instanceof Context))) { /* 173 */ setMaxInactiveInterval(((Context)this.container).getSessionTimeout() * 60); /* */ /* 175 */ ((Context)this.container).addPropertyChangeListener(this); /* */ } /* */ } /* */
/** * @param container the container to set */ public void setContainer(Container container) { // De-register from the old Container (if any) if ((this.container != null) && (this.container instanceof Context)) ((Context) this.container).removePropertyChangeListener(this); this.container = container; if(container instanceof SipContext) sipManagerDelegate.setContainer((SipContext)container); // Register with the new Container (if any) if ((this.container != null) && (this.container instanceof Context)) { setMaxInactiveInterval ( ((Context) this.container).getSessionTimeout()*60 ); ((Context) this.container).addPropertyChangeListener(this); } }
/** * @param container the container to set */ public void setContainer(Container container) { // De-register from the old Container (if any) if ((this.container != null) && (this.container instanceof Context)) ((Context) this.container).removePropertyChangeListener(this); this.container = container; if(container instanceof SipContext) sipManagerDelegate.setContainer((SipContext)container); // Register with the new Container (if any) if ((this.container != null) && (this.container instanceof Context)) { setMaxInactiveInterval ( ((Context) this.container).getSessionTimeout()*60 ); ((Context) this.container).addPropertyChangeListener(this); } }
/** * {@inheritDoc} */ public void setContainer(Container container) { // De-register from the old Container (if any) if ((this.container_ != null) && (this.container_ instanceof Context)) this.container_.removePropertyChangeListener(this); // Default processing provided by our superclass this.container_ = container; // Register with the new Container (if any) if ((this.container_ != null) && (this.container_ instanceof Context)) { setMaxInactiveInterval (((Context) this.container_).getSessionTimeout() * 60); this.container_.addPropertyChangeListener(this); } this.engine = getEngine(); }
/** * Set the Container with which this Manager has been associated. If * it is a Context (the usual case), listen for changes to the session * timeout property. * * @param container The associated Container */ public void setContainer(Container container) { // De-register from the old Container (if any) if ((this.container != null) && (this.container instanceof Context)) ((Context) this.container).removePropertyChangeListener(this); // Default processing provided by our superclass super.setContainer(container); // Register with the new Container (if any) if ((this.container != null) && (this.container instanceof Context)) { setMaxInactiveInterval ( ((Context) this.container).getSessionTimeout()*60 ); ((Context) this.container).addPropertyChangeListener(this); } }
@Override public Session createSession(String sessionId) { RedissonSession session = (RedissonSession) createEmptySession(); session.setNew(true); session.setValid(true); session.setCreationTime(System.currentTimeMillis()); session.setMaxInactiveInterval(getContext().getSessionTimeout() * 60); if (sessionId == null) { sessionId = generateSessionId(); } session.setManager(this); session.setId(sessionId); return session; }