CommerceDataWarehouseAuthenticationModule Constructor
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Initializes a new instance of the CommerceDataWarehouseAuthenticationModule class.
Namespace: Microsoft.CommerceServer.Runtime
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Sub New
'Usage
Dim instance As New CommerceDataWarehouseAuthenticationModule()
public CommerceDataWarehouseAuthenticationModule()
public:
CommerceDataWarehouseAuthenticationModule()
public function CommerceDataWarehouseAuthenticationModule()
Remarks
This class allows for analytics click-stream reports generation for the site. When the PreRequestHandlerExecute event for this HttpModule is fired, the HttpContext.Current.User.Identity.Name is obtained:
If the user is authenticated, an entry is created in the IIS log corresponding to the "MSCSAuth" ticket for the user. The actual cookies associated with the request are not modified.
If the user is not authenticated, it is checked to see if there is an existing "MSCSProfile" cookie associated with the request. If there isn't one, a new ticket is created (with a random value) and added to the Response cookies collection. This allows for future requests in the same session. IIS automatically logs this cookie along with the other cookies.
The processing is done during the PreRequestHandlerExecute event so the earlier events can set up HttpContext.Current.User which is required.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
CommerceDataWarehouseAuthenticationModule Class