Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Feb 2010
    Location
    Madurai
    Posts
    3

    Browser close event

    Dear All,

    Can anyone help out,
    How to handle the browser instance closing event in LS java adapter?

    Thanks in advance

    Regards,
    Raja

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    975
    Do you refer to a browser instance which runs a single pushpage while other pushpages remain alive within other browser instances?
    Or does your application consist of only one pushpage and do you refer to the browser instance which runs this only page?

    As a general rule, if there is an active session and a page gets closed, the Server will be eventually notified, though with a possible delay;
    on the other hand, if the Engine were disconnected at the time the page were closed, there would be no way for the Server to be notified.
    We can add more details once your specific use case is identified.

  3. #3
    Member
    Join Date
    Feb 2010
    Location
    Madurai
    Posts
    3
    Dear DarioCrivelli,
    Thanks for the reply

    "As a general rule, if there is an active session and a page gets closed, the Server will be eventually notified, though with a possible delay;"

    Can you please, give the details of Server notification (ie, function name etc) to handle the page closing event.

    Thanks and regards,
    Thiagarajan

  4. #4
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    975
    For what concerns my first question, I assume that you are in the simplest case,
    that is: your application consists of just one pushpage (which includes its own Engine) and you close the browser, so the whole application gets closed.
    This causes the session to be closed, so that the Server can notify the Metadata Adapter through the notifySessionClose callback.
    As said, the Server may need some time to understand that the client has detached and, even then, it may wait for some time before sending the notification.

    Note, however, that notifySessionClose is invoked upon session closure for any reason.
    There is no information about the cause.

 

 

Similar Threads

  1. How to close Session in LS?
    By spganesh in forum Client APIs
    Replies: 1
    Last Post: February 10th, 2010, 11:23 AM
  2. How to Close Connections Properly
    By lizsedley in forum Adapter APIs
    Replies: 1
    Last Post: September 21st, 2009, 02:32 PM
  3. Suspend when close IE
    By skidrow406 in forum Client APIs
    Replies: 4
    Last Post: March 11th, 2008, 06:32 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 05:26 AM.