StandardSManager.GetShopperId
Use this method to retrieve the shopper ID for the current user. The shopper ID is returned from a URL query string or a cookie, depending on the initialization mode of the StandardSManager object for the site.
Definition
Function GetShopperId(pdispContext As Object) As Variant
Parameters
pdispContext
An object reference that holds the ASP scripting context.
Return Values
If this method completes successfully, it returns a Variant that specifies the shopper ID.
Error Values
This method sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to standard COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.
Remarks
If no shopper ID is found, the GetShopperID method returns an empty string.
For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.