So I am trying to implement relogin on session timeout. So I added to web.xml:
and implemented the login failed marker, and was hoping I understood what I was doing and would see a dialog to log back in after being idle for a minute and then trying to interact in a way that hit a protected url. Much to my dismay, the session does not appear to ever timeout. And as I watch firebug, the only logical conclusion I can come to, is that realtime messaging is actually keeping my session alive. Which really is not a desirable solution.
I am using the settings provided in the documentation:
How can I configure all of this in a reasonable manner where I still get timely server push, and yet client sessions expire when no actual user activity happens?
--NOTE--
Obviously I set session timeout to 1 just in the hopes of making debug easier, and is not a realistic value.
Code:
<session-config> <session-timeout>1</session-timeout> </session-config>
I am using the settings provided in the documentation:
Code:
# how often do we send keepalives to the client (ms) messaging.keepaliveInterval: 3000 # how long the client waits after the keepaliveInterval before re-establishing # the connection (ms) messaging.keepaliveReestablishDelay: 1000 # how long the client waits for the connect handshake to complete before # retrying messaging.connectTimeout: 4000 # connection time to live - the maximum amount of time a persistent connection # is allowed to stay open before being re-established (ms) messaging.connectionTTL: 120000 # total response size to pad out to in order to defeat intervening # bufferring by proxies (bytes) messaging.flushBufferSize: 8096 # dispatcher to use for user registration/message queueing # com.isomorphic.messaging.LocalMessageDispatcher for simple one-jvm messaging # com.isomorphic.messaging.JMSMessageDispatcher for JMS-backed messaging messaging.dispatcherImplementer: com.isomorphic.messaging.LocalMessageDispatcher
--NOTE--
Obviously I set session timeout to 1 just in the hopes of making debug easier, and is not a realistic value.
Comment