Previous in Contents Next in Contents

TrafficLogFile Object Overview

Note  The TrafficLogFile object is included in Commerce Server 3.0 only for backward compatibility with sites created in Commerce Server 2.0. New sites should record and measure traffic with Site Server Analysis.

To create a TrafficLogFile object, use the Server.CreateObject method, specifying Commerce.TrafficLogFile as the object's programmatic identifier:

Set MSCSTraffic = Server.CreateObject("Commerce.TrafficLogfile")
Set Application("MSCSTraffic") = MSCSTraffic

If you create a TrafficLogfile object in your site's Global.asa file, you should initialize the Application object's MSCSTraffic variable to reference the object instance.

After creating the object, and before calling its LogTraffic method, use the InitTraffic method to initialize the object.


© 1997-2000 Microsoft Corporation. All rights reserved.