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
    833
    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
    833
    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. How to change the streaming/smart polling/polling mode
    By chanro4 in forum Java SE Client API
    Replies: 1
    Last Post: January 19th, 2011, 10:23 AM
  2. Connection status, CONNECTING, doesn't change
    By mr_gray in forum JavaScript Client API
    Replies: 5
    Last Post: December 20th, 2010, 01:37 PM
  3. Replies: 8
    Last Post: March 25th, 2010, 09:02 AM
  4. How to change the background color in a dependent field?
    By Test6405 in forum JavaScript Client API
    Replies: 1
    Last Post: November 2nd, 2009, 04:55 PM
  5. status change when the content length is reached
    By riwang in forum JavaScript Client API
    Replies: 3
    Last Post: May 21st, 2009, 09: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
  •  
Powered by vBulletin® Version 4.2.0
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
All times are GMT +1. The time now is 11:42 AM.