Tracking Visits to my Web Site
Posted on 1997-06-24
A) The current web site I am working on I created using Microsoft Visual Interdev
B) the problem > I track the number of visits to the web site in a text file. I use the Session_OnStart routine in global.asa via VBSCRIPT.
The process is to 1) load the text file in to get the count, 2) close that file, 3) re-create the file writing the new total of visits.
Finally, my question> What happens if two people access the file at the same time? How can I protect from any possible file problems?