Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Apr 2011
    Location
    Bedminster
    Posts
    17

    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

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,089
    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.

  3. #3
    Member
    Join Date
    Apr 2011
    Location
    Bedminster
    Posts
    17
    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?

  4. #4
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,089
    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

  1. Replies: 1
    Last Post: January 19th, 2011, 11:23 AM
  2. Connection status, CONNECTING, doesn't change
    By mr_gray in forum Client SDKs
    Replies: 5
    Last Post: December 20th, 2010, 02:37 PM
  3. Replies: 8
    Last Post: March 25th, 2010, 10:02 AM
  4. Replies: 1
    Last Post: November 2nd, 2009, 05:55 PM
  5. status change when the content length is reached
    By riwang in forum Client SDKs
    Replies: 3
    Last Post: May 21st, 2009, 10:37 AM

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 10:58 AM.