spring - Httpsessionlistener: two sessions are created and none are destroyed -


edit: reformulated question

i'm using spring , gwteventservice (which basicly same comet). when make simpler httpsessionlistener, see sessioncreated() called twice , sessiondestroyed() not called in between. why that? have 2 sessions 1 user??? second httpsession created when set information first time @ session bean (spring).

import javax.servlet.http.httpsessionevent; import javax.servlet.http.httpsessionlistener;  public class somesessionlistener implements httpsessionlistener {    @override   public void sessioncreated(httpsessionevent se) {     log.info("new session created, source= " + se.getsource());   }    @override   public void sessiondestroyed(httpsessionevent se) {     log.info("a session closed");   }  } 

example output:

application has started new session created, source= org.mortbay.jetty.servlet.hashsessionmanager$session:21u4n0rnyp4i@24662444 new session created, source= org.mortbay.jetty.servlet.hashsessionmanager$session:n9wm8tsj1ote@28925695 application interrupted client 

i found answer formulated different question: spring security concurrent-session , httpsessionlistener problem

in short: it's better destroy-method session bean.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -