Ok, let me explain this more clearly.
I have a web and a login page. When user 1 logged in, the web will return the code below:
<div datasource="lightstreamer" itemname="abc">
<div datasource="lightstreamer" itemname="xyz">
<!-- Below is the javascript Lightstreamer connect (i use the one ie the helloworld example) -->
<script>
...
</script>
I only want the User 1 to see only 2 <div>s like that. But when the admin logged in, he will see all 3 divs like this:
<div datasource="lightstreamer" itemname="abc">...</div>
<div datasource="lightstreamer" itemname="xyz">...</div>
<div datasource="lightstreamer" itemname="[COLOR=#ff0000][B]123123[/B][/COLOR]">...</div>
<!-- Below is the javascript Lightstreamer connect (i use the one in the helloworld example) -->
<script>
...
</script>
Of course, i use my own
php authentication code. But in this situation, user1 can right click and view web's source, he will see the javascript Lightsteamer connecting code. He will copy the code to connect manually to my lightstreamer server. And what if he knows the item "
123123" ? He will add a similar div and he will see the streaming data of that div. I dont want this.
Thanks for the guide authentication in section 4.1, but like you said, i wont use lightstreamer authentication.
Please show me how to handle this case.