PDA

View Full Version : Tracking the traffic and users


dmkrishna
11-25-2002, 07:10 PM
Hi,
I have the script to track users into my site. I created an ASP page to gather the information and insert that information into a table. I need to write this in a log file daily basis. My link works only if any user comes using the page i created. But I want to track all the users who enters into my site. I didn't want to use ScriptUtils.dll (a third party component to create log files.). Here My problem is not with server variables.
I tried to create a file with FileSystemObject and fso.CreateTextFile. I don't know where it is creating the log file. For path i used this server variable APPL_PHYSICAL_PATH . I tested my vbscript code. It is working fine.
I'm just getting the info of the users who come to the site from affiliated partners. But i want to log all users info who enters into the site into this log file to prevent mallacious attacks.
Thanks,
Murali.

:rolleyes:

glenngv
11-26-2002, 02:42 AM
put the code in the global.asa specifically in the Session_OnStart event handler so that the FIRST time the user runs any ASP file in your site, the code will be executed.