Create an object that implements the FlexSessionListener interface. Then set your object to receive the callbacks:
FlexContext.getFlexSession().addSessionDestroyedListener(your Object); --- In flexcoders@yahoogroups.com, "Dharmendra Chauhan" <chauhan_i...@...> wrote: > > Thanks Jeffrey, > > I am using RTMT channel, which interface I need to implement in order to get > notification or I have.I mean what are the ways to implement it. > I need to close some open connections to the backend system when Flex Client > goes down. > > Regards, > Dharmendra > > > > > --- In flexcoders@yahoogroups.com, Jeffrey Vroom <jeff@> wrote: > > > > The FlexSession object dispatches session closed events. For RTMP sessions, > > these will be pretty much immediate. For HTTP sessions though, they are > > dispatched when the session expires. So for RTMP you get quick notification > > but for HTTP it will be delayed based on your session expiration interval. > > Jeff > > > > On Tue, May 12, 2009 at 10:39 PM, Dharmendra Chauhan <chauhan_icse@ > > > wrote: > > > > > > > > > > > Hi, > > > I have to release resources when user get disconnected from LCDS. > > > What I need to implement in java to listen it ? > > > > > > User may disconnect due to network failure ,when he closes the flex Window > > > etc.. > > > > > > Thanks, > > > Dharmendra > > > > > > > > > > > > > > >