Results 1 to 2 of 2
  1. #1
    Senior Member
    Join Date
    Sep 2013
    Location
    Coimbatore
    Posts
    74

    Force terminate the user session

    I need some help to force terminate the user session suppose if the user goes to other tab from my site in browser, after reenter to my site i need to create new session to the client. And also i need to terminate the session if the user navigate to other page of my site. Because LS server only have to serve the data if the user currently on my stock display page. Other wise server no need to serve the data to client.
    And also I need the help to restrict the other person to view my LS server. Now I'm running my LS server in my server with the default port number 8080. So I have mentioned the detail mydomainname:8080 in client to connect my server. Developers can see the link by using the developer console. If the developer hit the URL like mydomainname:8080 means response display like lightstreamer page. How to avoid this screen if the request comes from other than my domain or I need some credential to post from request header and LS server validate the request header data and based on the validation need to send response.

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    537
    Hi rvkvino,

    if the user navigates to other page the Lightstreamer session should close shortly. Have you different evidences?
    Instead in case of browsing through the tabs, it is common practice keep open the session, but if you want a different behavior you should be able to detect the blur and focus events for the browser window, closing and re-opening the session calling disconnect() and connect() of LightstreamerClient.

    About restrict other person to view LS server please refer this document: http://www.lightstreamer.com/repo/di...RITY_NOTES.TXT
    that shows how to protect the Monitoring dashboard of the server and suggests to remove at all the "pages" folder.

 

 

Similar Threads

  1. Light streamer user session maintenance
    By rvkvino in forum General
    Replies: 1
    Last Post: February 24th, 2017, 10:06 AM
  2. Get Bandwidth/Throughput per session/user
    By Milanche in forum Adapter APIs
    Replies: 1
    Last Post: October 7th, 2013, 09:16 AM
  3. Replies: 1
    Last Post: June 7th, 2010, 11:13 AM

Tags for this Thread

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 07:57 AM.