Skip navigation
Currently Being Moderated

Cannot destroy my flex session using FlexSessionListener

Jun 16, 2011 1:56 AM

Hi all,

 

I have what I thought was a simple need: destroy a session once a user logs out of my application either via a logout button or by closing the browser.

I have implemented the body ... onunload="disconnectAll()" .. method which I found numerous examples of on the net and have my logout button call the same disconnectAll() upon click.

 

All this is good and my FlexSessionListener sessionDestroyed() gets called. However, I can see from my logs that a sessionCreated() also gets called straight after the call to sessionDestroyed!

 

Has anybody seen this or have any idea why this is happening?
Are there threads running or feeds from clients that are keeping my session alive through recreating another one?

 

Any help would be greatly appreciated!

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points