Hi All,
I want to create a user portfolio of stocks which displays users portfolio based on his profile. how can i create a users session?? According to the attached pdf document (which i found in another thread), Client creates the session and sends it to Lightstreamer and lightstreamer verifies that credentials by connecting to the webserver or database.But im unable to send username and session to the lightstreamer.
Im working portfolio demo in Lightstreamer5 Demos, But there is no user authentication in that demo.
How can i retrieve user based information from lightstreamer??
Can i find any explanation for user authentication with sample code..
The attached pdf refers to a configuration where Lightstreamer works together to a Web/Application server; in that scenario the actual authentication is handled by the legacy Web/Application server, irrespective of Lightstreamer.
In order to better assist you, we need to understand if you are working with Lightstreamer together a Web/Application server or with Lightstreamer alone.
Maybe you are just developing and you do not want introduce, for the moment, a Web/Application server?
Hi,
Yes im working with Lightstreamer together a web server (Apache and php).
I want to have a login page in my site where user logins and we will send that information to lightstreamer for user specific data.
Well karthik655,
So what you need to do is to retrieve the login information (username, password or session-id) originated by your web/application server and set them on the LightstreamerClient.connectionDetails object before calling the LightstreamerClient.connect() method (please refer to setUser() and setPassword() here:http://www.lightstreamer.com/latest/...onDetails.html).
Your MetaData Adapter receives this information in the notifyUser call where you can manage issues related to authentication, authorization, and entitlement.
Bookmarks