Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Dec 2012
    Posts
    18
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Person Online indicator on website

    I'd like to implement a small indicator on a website that shows when a person/webmaster is online. For example if you log into skype. contacts on skype can see you're online, can this be done so a website will show online status of a user? Not with skype, just using that as an example. What technologies would be best for this purpose?

  • #2
    Regular Coder
    Join Date
    Jun 2010
    Posts
    302
    Thanks
    68
    Thanked 8 Times in 8 Posts
    I recommend learning PHP, then implement a simple log-in mechanism.

  • #3
    New Coder
    Join Date
    Dec 2012
    Posts
    18
    Thanks
    9
    Thanked 0 Times in 0 Posts
    Thanks for replying! Could you elaborate a little further? I used to know a little PHP.

  • #4
    Regular Coder
    Join Date
    Jun 2010
    Posts
    302
    Thanks
    68
    Thanked 8 Times in 8 Posts
    Quote Originally Posted by starmin View Post
    Thanks for replying! Could you elaborate a little further? I used to know a little PHP.
    You need to implement a simple authentication mechanism. Works something like this:

    login form on web page (client side) -> user enters details and hits submit (client side -> server side) -> details are checked against the database (server side) -> the user is logged in (however you want to do that) and their login information is remembered in $_SESSION (server side) -> use the login information to dynamically change the content of subsequent web pages to reflect the online status of the current and other users (server side -> client side).

    That, in a nutshell, is it. To implement it will take some knowledge of PHP and HTML. Do a google search for "how to create a login system in PHP". That would be a good starting point. Then learn as you go. That's how most of us learned PHP - by solving real-world problems like yours.

  • Users who have thanked XmisterIS for this post:

    starmin (08-15-2013)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •