AuthManager.GetUserIDFromCookie Method (PIA)
Use this method to retrieve a user ID stored in a cookie.
Definition
[Visual Basic .NET]
Imports Microsoft.CommerceServer.Interop
…
Public Function GetUserIDFromCookie(cookieData As String) As String
[C#]
using Microsoft.CommerceServer.Interop;
…
string GetUserIDFromCookie(stringcookieData);
Parameters
[Visual Basic .NET]
- cookieData
A String that contains the cookie.
[C#]
- cookieData
A string that contains the cookie.
Return Values
[Visual Basic .NET] If this method completes successfully, it returns a String that contains the user ID.
[C#] This method returns a string containing the user ID.
Exceptions
This method may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.
[Visual Basic .NET]
The following table shows the custom COM error that this method can return.
Value | Description |
---|---|
&HC1004C10 | The Initialize method must be called with the installed site name before calling this method. |
[C#]
The following table shows the custom COM errors that a COMException can wrap.
Value | Description |
---|---|
0xC1004C10 | The Initialize method must be called with the installed site name before calling this method. |
Remarks
The cookie data is always URL decoded.
Commerce Server 2002 Analysis applications use this method to extract user IDs from cookies found in Internet Information Services (IIS) log files.
Requirements
Namespace: Microsoft.CommerceServer.Interop
Platforms: Windows 2000, Windows Server 2003
Assembly: mscsauthlib (in mscsauthlib.dll)
See Also
Copyright © 2005 Microsoft Corporation.
All rights reserved.