To display the Online User list on right side.

The following update will modify the current code and show the list of online users at the right side. If any new user logins or already login user logouts then this list will update.
What's the use of login when its not handled by server?