CommerceDataWarehouseAuthenticationModule Class

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

A DataWarehouse authentication http module provides the correlation mechanism to track ASP.NET site visitors to profile users. This class cannot be inherited.

Namespace:  Microsoft.CommerceServer.Runtime
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public NotInheritable Class CommerceDataWarehouseAuthenticationModule _
    Inherits CommerceModule
'Usage
Dim instance As CommerceDataWarehouseAuthenticationModule
public sealed class CommerceDataWarehouseAuthenticationModule : CommerceModule
public ref class CommerceDataWarehouseAuthenticationModule sealed : public CommerceModule
public final class CommerceDataWarehouseAuthenticationModule extends CommerceModule

Remarks

This class allows for analytics click-stream reports generation for the site. This class handles the PreRequestHandlerExecute event. This method obtains the username from the CommerceContext.Current.UserId and creates an encrypted Ticket string. When the event is fired, the following logic is applied:

  • If the user is authenticated (The UserID is not nullNothingnullptra null reference (Nothing in Visual Basic)) the User’s encrypted Ticket string is logged in the IIS logs as the "MSCSAuth" ticket for the user, and no cookie is created.

  • If the user is not authenticated (The UserID is nullNothingnullptra null reference (Nothing in Visual Basic)) a MSCSProfile session cookie is created with a random GUID, and a cookie is logged to the IIS log.

If the Commerce Server Authentication (AuthManager) is being used, then the Data Warehouse Authentication Module should not be listed in the httpModules section of web.config). For further information on ASP.NET authentication, see UserID.

Inheritance Hierarchy

System..::.Object
  Microsoft.CommerceServer.Runtime..::.CommerceModule
    Microsoft.CommerceServer.Runtime..::.CommerceDataWarehouseAuthenticationModule

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

CommerceDataWarehouseAuthenticationModule Members

Microsoft.CommerceServer.Runtime Namespace