-
March 2nd, 2012, 03:49 AM
#1
Will session id change when connection mode change?
Just want to understand if the connection mode is changed due to networking environment change, from streaming to pulling or pulling back to streaming, will the session id remain the same?
Thanks
-
March 5th, 2012, 08:51 AM
#2
I can't understand the exact case you are referring to (and I suppose that by "pulling" you mean "polling"), but, as a general answer:
there are no cases in which the .NET Client Library switches a session between polling and streaming.
Only in the Stream-sense phase, a session opened in streaming may be replaced by a session opened in polling, but the application is not even aware of the former, temporary, session: it is only visible in the Server log.
-
March 5th, 2012, 10:54 PM
#3
I should post this question under .net data adapter development. The reason for asking this question is because the data adapter I developed is using session id of LS to push user specific data to client side. If the session id can be changed throughout the life span of the connection, it will mess up the user states in the data adapter. What is the best practice to keep track of user state on the data adapter?
-
March 6th, 2012, 08:58 AM
#4
During the life of a client application it is always possible that multiple sessions are opened, each of which with a different ID; in fact, the client could disconnect and reconnect, or recover from an interruption due to network problems.
In general, these sessions don't overlap and the Metadata Adapter can rebuild the user history by sensing the NotifyNewSession and NotifySessionClose calls.
In some cases, like in the Stream-sense case, two sessions may even overlap.
If overlapping is a problem, then your Metadata Adapter has the option of forcing the existence of one single session by throwing a ConflictingSessionException from NotifyNewSession when needed.
We are working on a way to simplify the interface with the Metadata Adapter on this respect, but no results are expected for the forthcoming release.
However, for instance, the Html Client Library, since version 5.0, no longer changes the session because of the Stream-sense or when resorting to polling if the client can't keep up with a huge streaming update flow.
We may try to help you, if you provide us with more details on your case.
Similar Threads
-
By chanro4 in forum Client SDKs
Replies: 1
Last Post: January 19th, 2011, 10:23 AM
-
By mr_gray in forum Client SDKs
Replies: 5
Last Post: December 20th, 2010, 01:37 PM
-
By hungn in forum Client SDKs
Replies: 8
Last Post: March 25th, 2010, 09:02 AM
-
By Test6405 in forum Client SDKs
Replies: 1
Last Post: November 2nd, 2009, 04:55 PM
-
By riwang in forum Client SDKs
Replies: 3
Last Post: May 21st, 2009, 09:37 AM
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 10:21 PM.
Bookmarks