David, The session listener worked correctly. I was not placing the listener correctly. I placed the session listener in my web application's web.xml instead of keeping it in jetspeed's web.xml file. I am sorry for the confusion and i posted it so that others may know the reason behind my error. Secondly, with reference to valve as explained in other threads its still the same and i hope iam not doing any silly mistake as i have did in session listener case.
Thanks, Srini. David Taylor-23 wrote: > > On Wed, Nov 17, 2010 at 3:06 PM, SriniPitta <[email protected]> > wrote: >> >> Hi, >> >> I would like to insert a new entry in database capturing the session and >> user details upon each time the user login into portal and logout the >> portal. >> >> I have written a listener class and extended HttpSessionListener and >> overrided sessionCreated() and sessionDestroyed() methods and added below >> entry in my web.xml. But it does not invoke my listener during user login >> or >> logout. Can you please let me know the correct way of implementing. >> > > What version of Jetspeed? I believe the "create new session on login" > was set to false in previous releases: > > <bean > id='org.apache.jetspeed.administration.PortalAuthenticationConfiguration' > > class='org.apache.jetspeed.administration.PortalAuthenticationConfigurationImpl'> > <meta key="j2:cat" value="default" /> > > <!-- create new session upon authentication --> > <constructor-arg index='0'> > <value>true</value> > </constructor-arg> > > In the current release its set to true. See the Spring configuration > file "administration.xml" > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > -- View this message in context: http://old.nabble.com/session-listener-not-working-tp30239157p30283174.html Sent from the Jetspeed - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
