Hi , I tried FlexSessionListener but I was surprised to see that only sessionCreated method is getting called.
I have put break point in SessionDestroyed() method , It does NOT get called when I closes the Window. However It get called after 15-20 minute. I was expecting it to get called immediatly after the window closure but It is not happening. Please note that I m using RTMP channel and my application was deployed as activeX control and I have not configured any time out period. Do I need to configure anything else to enable SessionDestroyed() method ? Regards, Dharmendra --- In [email protected], "foobone9" <foobo...@...> wrote: > > > Create an object that implements the FlexSessionListener interface. > Then set your object to receive the callbacks: > > FlexContext.getFlexSession().addSessionDestroyedListener(your Object); > > > --- In [email protected], "Dharmendra Chauhan" <chauhan_icse@> 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 [email protected], 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 > > > > > > > > > > > > > > > > > > > > > >

