DWR

Destroying the script session on unload of a page and close of window

Details

  • Type: Task Task
  • Status: Reopened Reopened
  • Priority: Critical Critical
  • Resolution: Unresolved
  • Affects Version/s: 2.0.1
  • Fix Version/s: 3.0.1
  • Component/s: Engine, Reverse Ajax
  • Description:
    Hide
    Hi,

    on load of a jsp page we are calling a java script which in turn calls a method of a java file where we have written a business logic to get data from database using dwr inside a while loop which is constantly hitting the database to get updated records. now the problem is when ever we close the window of jsp or when we unload the page the while loop is still getting executing the logic i.e. the data still exist in session i.e. session is not getting destroyed. how to achieve the closing of session on unload of jsp page or close of window.

    Pl help in solving this. this is critical issue we need solution as soon as possible.

    Regards,
    Prasad
    Show
    Hi, on load of a jsp page we are calling a java script which in turn calls a method of a java file where we have written a business logic to get data from database using dwr inside a while loop which is constantly hitting the database to get updated records. now the problem is when ever we close the window of jsp or when we unload the page the while loop is still getting executing the logic i.e. the data still exist in session i.e. session is not getting destroyed. how to achieve the closing of session on unload of jsp page or close of window. Pl help in solving this. this is critical issue we need solution as soon as possible. Regards, Prasad

Activity

Hide
David Marginian added a comment - 03/May/11 4:57 PM

Browsers handle the unload event in an inconsistent manner. It appears for example that when the browser window is closed Opera does not call the unload event. I have re-opened this issue to investigate this and see if there is anything we can do.

Show
David Marginian added a comment - 03/May/11 4:57 PM Browsers handle the unload event in an inconsistent manner. It appears for example that when the browser window is closed Opera does not call the unload event. I have re-opened this issue to investigate this and see if there is anything we can do.

People

Dates

  • Created:
    06/Sep/07 1:18 PM
    Updated:
    03/May/11 5:00 PM