Code to Create and Initialize AuthManager

The AuthManager object uses site configuration resource properties. When the AuthManager object is first initialized, it creates a site cache and populates the cache with these properties. If initialized again, it checks the cache for these properties and, if they are not found, they are loaded again. An instance of the AuthManager object is created and initialized in the Global.asa file for the site (for performance reasons) and on every page that uses the AuthManager object.

  1. Create the AuthManager object. Note that the ProgID for the object is different than the object name.

    Dim oAuthManager
    Set oAuthManager = Server.CreateObject("Commerce.AuthManager")
    
  2. Initialize the object to the Retail site.

    oAuthManager.Initialize "Retail"
    

Copyright © 2005 Microsoft Corporation.
All rights reserved.