Is there a way to detect users are on the same page?
I'm trying to find a way to have a page "listen" to which users are live. For example, let's say two users are about to go on the same page. When the first user gets to the page, his name will show up. Then when the next user gets to the page, he'll see the first user's name with his name below it. And when one leaves, their name disappears. How would I go about this? I am currently using PHP and JavaScript on my website.
Is there a way to detect users are on the same page?
===

I'm trying to find a way to have a page "listen" to which users are live. For example, let's say two users are about to go on the same page. When the first user gets to the page, his name will show up. Then when the next user gets to the page, he'll see the first user's name with his name below it. And when one leaves, their name disappears. How would I go about this? I am currently using PHP and JavaScript on my website.