Hit Counter

Results 1 to 2 of 2

Thread: Hit Counter

  1. #1
    geeoff Guest

    Default Hit Counter

    I implemented the simple hit counter that was documented on this site. However the count is reset whenever the global.asa file is changed and saved, the webserver service is started and stopped or when the webserver is rebooted. How can I retain my count variable so it is not reset on these events?<BR><BR>-geeoff

  2. #2
    Alpha Guest

    Default RE: Hit Counter

    You can use the FileSystemObject to create a text file and write the stats to that at the end of each session so you know you have a true count of the number of user sessions.<BR>Then put, in the application_onStart section of the global.asa, fsObj.OpenTextFile and read out the value. This way, if the web server is stopped and started then you&#039ll have all your user session stats

Posting Permissions

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