5 Replies Latest reply on Mar 15, 2009 12:02 PM by nbelaevski

    Browser Close Event

    raghunath.asha

      Is there any way in JSF/Richfaces to know the browser close event (forced by user) using PhaseListener or something?

      My problem is I am doing a download file from my application and it was showing of the % downloded etc...If the user closes the browser before completion my application is still doing the process in backend.

      Then again user opens another session/browser, the ajax push is showing the previous and current % downloads and making confusions.

      So If I know the session kill/browser kill event I can do some logic in the backend to stop/cancel downloading for the killed session.

      Any thoughts...