On Sun, 8 May 2005, Michael Wechner wrote: > Jann Forrer wrote: > > >I did try to do this starting with a simple example i.e. a listener which > >only counts the active sessions. This works quite well now but i noted > >that a logut did not invalidate the session (meaning that if a user did > >log out i still had the same number of sessions). > >The reason is that session.invalidate(); is not called in logout.xsp. If > >i add it to login.xsp: > >
I carry on with that functionality and wrote a class which implements HttpSessionAttributeListener where the identity of a user is stored in a HashMap in the attributeAdded method or is removed from the HashMap in the attributeRemoved method respectivelly. Just to check it i wrote an cocoon action which display the logged in user. This works quite well. The next step would be: - Write a cocoon generator in order to generate xml including all logged in users. Or are there other possiblities to make the info available to the sitemap? - Show only the users which are logged in into the respective publication. WDYT? [ ...] > > very cool. Has your CLA been accepted? Time to get started checking > stuff ;-) > not yet ... Jann --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
