Results 1 to 4 of 4

Thread: [RESOLVED]how to track what online user is doing?

  1. #1

    Thread Starter
    Lively Member rasana's Avatar
    Join Date
    Jan 2007
    Location
    Mumbai, (India)
    Posts
    94

    Resolved [RESOLVED]how to track what online user is doing?

    Hi all,

    how to track currently logged in users information?
    (e.g. Whether user is editing profile, viewing page, deleting profile etc.)
    Last edited by rasana; Oct 23rd, 2007 at 02:51 AM.

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: How to track what online user is doing?

    You'll need a database. On every page action, simply save their location to the database, as well as the current timestamp. To view active users, just do a SELECT from the table, and drop rows which are older than a certain amount of time (say 15 minutes).

  3. #3

    Thread Starter
    Lively Member rasana's Avatar
    Join Date
    Jan 2007
    Location
    Mumbai, (India)
    Posts
    94

    Re: How to track what online user is doing?

    Thanks Penagate
    I thought I will have to use session variables or something...
    your method is easier than storing data in sessin variables..

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: [RESOLVED]how to track what online user is doing?

    Session variables would actually be easier if you could use a trick to view the session data of other users. I've never tried, but it would involve changing the location of the session data files. This wouldn't work on a shared hosting server though, and it'd also a potential security risk. The database method is more reliable.

Posting Permissions

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



Click Here to Expand Forum to Full Width