-
February 4th, 2016, 03:33 PM
#1
I know this thread is a bit old, but still very relevant to my use case as described below.
We wanted to ensure that upon the user hitting logout, all streaming sessions to LS be terminated. The obvious solution is to modify the above code, group the sessions for a given user together, and then raise a disconnect call on one of the open 'LightstreamerClient' object. However, architecture tells me that logout event is loosely coupled with the many, many applications in the portal and it only servers to call an HTTP request to invalidate the session cookie.
I expected that i would be able to extract LS sessions from the HTTP header and call LS server for session termination, but LS documentation tells me that is not possible ( please correct if i am wrong). Putting a cached map of user to session_id's somewhere in the global cache has system engineering in a fit so will be a hard sell.
So, please advice if there is another solution to extract LS session information from the headers, or another way to disconnect user sessions which is not based on LS session_id's. Thanks a lot for any advice you can give.
-
February 5th, 2016, 11:11 AM
#2
Hi link2tdss,
I am very sorry but I am not sure to understand the scenario you described.
Please, could you confirm that your aim is to have a component, between the client and the server, that collects sessions id of all streaming sessions opened by a user, and when detects the logout for the user, proceeds to disconnect all the sessions upon Lightstreamer server?
Thank you,
Giuseppe
Similar Threads
-
By stephenallred in forum Client SDKs
Replies: 1
Last Post: June 7th, 2010, 11:13 AM
-
By gani in forum Client SDKs
Replies: 6
Last Post: May 19th, 2010, 09:30 AM
-
By churrusco in forum General
Replies: 15
Last Post: April 20th, 2010, 08:46 AM
-
By EWANG in forum Client SDKs
Replies: 7
Last Post: April 16th, 2010, 05:09 PM
-
By spganesh in forum Client SDKs
Replies: 1
Last Post: February 10th, 2010, 10:23 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 11:53 AM.
Bookmarks