-
February 9th, 2010, 04:52 PM
#1
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
-
February 10th, 2010, 10:23 AM
#2
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
-
By stephenallred in forum Client SDKs
Replies: 1
Last Post: June 7th, 2010, 11:13 AM
-
By pmthiagu in forum Adapter SDKs
Replies: 3
Last Post: April 15th, 2010, 09:58 AM
-
By lizsedley in forum Adapter SDKs
Replies: 1
Last Post: September 21st, 2009, 01:32 PM
-
By skidrow406 in forum Client SDKs
Replies: 4
Last Post: March 11th, 2008, 05:32 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 03:30 PM.
Bookmarks