You could also use HttpSessionAttributeListener for a 3rd party to note when
objects are put into/removed from session

-----Original Message-----
From: David Graham [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 12:19
To: [EMAIL PROTECTED]
Subject: Re: Active users in a struts web application.


HttpSessionListener might not work because (AFAIK) it gets notified when  a
session is created but before you get a chance to put anything in the
session (like a User object identifing the person).  This would work if you
just wanted a count of online users but not their info.

David






>From: "V. Cekvenich" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Active users in  a struts web application.
>Date: Wed, 15 Jan 2003 12:12:20 -0500
>
>Try a session listener, store it in a db table.
>.V
>
>VEDRE, RANAPRATAP REDDY wrote:
>>Not a struts specific question, but i know where the experts are...
>>
>>I am tring to show the users currently logged into a web application, so
>>that anybody who logs in can see who else is logged in.
>>
>>This functionality is similar to a standard chat program.
>>
>>i am using ServletContextListener and HttpSessionAttributeListener classes
>>in the server API.
>>
>>Struts 1.1b2, so i can use Plugins if needed.
>>
>>Any help/ideas about tracking users currently logged into a web
>>application
>>are most welcome.
>>
>>
>>
>>Thanks,
>>Rana.
>
>
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>


_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to