To achieve this, consider implementing the following approach instead of relying on the latest WebSockets HTML5 technology:
- Upon user login, update their status in the database to reflect that they are online.
- Periodically query a service or method from your page to retrieve a list of online users.
- If there are any changes to the list, dynamically update the section of the page displaying the current users.
This is a high-level overview of the solution. For more detailed guidance, please specify your server-side hosting platform and programming language of choice. Additionally, let us know your preference for a JavaScript framework or if you are open to suggestions.