Hi,
Let's split the problem:
1
First we need to understand why the client disconnects, do you have a server log showing both the first and second session?
On what browser(s) does this happen?
2
Why browser is disconnect and reconnect again? How do we prevent this? Is there is a anyway to set timeout for connection? like don't create the new connections for 7 hours.
(Assuming you're using the latest version of the client library) Once the
connect method is called the client will always make the best effort to ensure that there is a streaming connection available. As soon as a disconnection occurs the client will try to reconnect to the server. To stop the reconnections you must call the disconnect method.
3
As per what happens to the updates while the client disonnect/reconnects, is probably more a logical problem than a practical one and it depends on many factors:
How long the client remains disconnected
Whenever there are other clients subscribed to same items or not
The Subscription mode
The snapshot configuration
Please take a look to the General Concepts document and let me know if it clears things up:
http://www.lightstreamer.com/latest/Lightstreamer_Allegro-Presto-Vivace_5_1_Colosseo/Lightstreamer/DOCS-SDKs/General%20Concepts.pdf