Drew
Would you see any practical problems with using this feature to maintain
an application variable containing the list of people currently logged
into an app?
Nick
----- Original Message -----
From: "Drew Falkman" <[EMAIL PROTECTED]>
To: "JRun-Talk" <[EMAIL PROTECTED]>
Sent: Friday, November 08, 2002 5:54 PM
Subject: RE: Session END action
> Hey Amit-
>
> You can create a listener class that will watch sessions and execute a
> method when a session dies (or on other event triggers). Include the
> javax.servlet.http.* package, then write code like this to overwrite the
> default sessionDestroyed() constructor:
>
> public void sessionDestroyed(HttpSessionEvent hse) {
> log(
> "*** Session Destroyed - Id:"+hse.getSession().getId()+" ***");
> }
>
> Then add this reference to your class in the web.xml file:
>
> <listener>
> <listener-class>myPackage.myClass.mySessionListener</listener-class>
> </listener>
>
> Hope this helps.
>
> Drew Falkman
> Team Macromedia, JRun
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=8
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=8
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.