NetTalk Central

Author Topic: Logging user activity?  (Read 4589 times)

JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Logging user activity?
« on: March 22, 2011, 12:50:56 AM »

Hi,

Has there been changes or improvements to logging users of the website?

This link points to the tip from Mike Grigsby.
http://www.nettalkcentral.com/index.php?option=com_smf&Itemid=36&topic=474.0

I was just wondering if there have been developements since then that might have an effect on this method?

thanks

Johan

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Logging user activity?
« Reply #1 on: March 22, 2011, 05:02:21 AM »
Hi Johan,

yes, quite a bit has changed.

Probably the best place to start is by running your site under the Multi-Host app. The Multi-Host has quite a lot of additions to the logging built-in.

If you didn't want to use that, then take note of the new AddLog methods which can be used to create your own custom logging.

cheers
Bruce


JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Re: Logging user activity?
« Reply #2 on: March 22, 2011, 06:46:41 AM »
Hi Bruce

Thanks,
found some info in PDF document and am also looking at the multi-host solution.

Johan

JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Re: Logging user activity?
« Reply #3 on: March 22, 2011, 10:18:26 AM »
Hi Bruce

I have a webuser file that handles my security.

Any tips on how to link in this user_id to the host logfile?

This way I can keep track of my registered web users and see how often they log in and what they get up to.

thanks

Johan

JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Re: Logging user activity?
« Reply #4 on: March 22, 2011, 10:21:23 AM »

Hi Bruce,

forgot to add,
idea that I am working on
is to expand the logfile in the host to store the user_id,
and then add the code in the host.exe to check if session variable exists for user_id and then add the value to the file.

Am I on the right track?

thanks

Johan

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Logging user activity?
« Reply #5 on: March 22, 2011, 10:51:52 PM »
yes. Keep the code tight though - it'll get called a lot.

cheers
Bruce