my project had audit module ,which inlcude each and every action of the user to be recoreded
so when the user closes the browser the audit regarding the logout has to be stored in the database
i found one solution in the net ,but it is working in my machine's IE but falied to work in the friends machines IE why?
the code is:
window.onbeforeunload = clean_up;
function clean_up()
{
var flex = document.${application} || window.${application};
flex.myFlexFunction();
}
i place this code in the index.template.html file in the html-template foleder under flex src
and i place the below code in my main application.mxml file
ExternalInterface.addCallback("myFlexFunction",btnLogout);
and i defined the logout funtion
if any one has solution plz answer me.............
thank you..................