Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Sep 2009
    Location
    Madurai
    Posts
    2

    How to close Session in LS?

    Hi All,
    I am new to Java and Light Streamer.

    I am using light streamer moderato version. When the user log out from the web page I am not able to close the session in Light Streamer. So if the user login again I am not able to go further. Can you give some guidance for this?

    And also when I close my browser without logout how can I get the event and close the session?

    Regards,
    Ganesh Subbiah

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    Hi,

    you can't close a Lightstreamer session at the moment a client disconnects.
    A Lightstreamer session expires after a timeout after the client disconnection.
    This is done so that sessions does not expire because of a delay on the network during polls or bind requests.
    After such timeout the notifySessionClose method is called on your MetadataProvider

    Note that you can edit the timeout after which a session is considered closed editing the <session_timeout_millis> element in the Lightstreamer configuration file (LS_HOME/conf/lightstreamer_conf.xml)

    Btw I don't understand what do you mean with "I am not able to go further", Lightstreamer itself does not pose any limit on the number of sessions opened by a user, so if your user logs out and then logs in again you can open a new session on Lightstreamer without waiting for the previous session to expire.

    HTH

 

 

Similar Threads

  1. Replies: 1
    Last Post: June 7th, 2010, 12:13 PM
  2. Browser close event
    By pmthiagu in forum Adapter SDKs
    Replies: 3
    Last Post: April 15th, 2010, 10:58 AM
  3. How to Close Connections Properly
    By lizsedley in forum Adapter SDKs
    Replies: 1
    Last Post: September 21st, 2009, 02:32 PM
  4. Suspend when close IE
    By skidrow406 in forum Client SDKs
    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 08:03 AM.