StandardSManager.InitManager
Use this method to initialize the StandardSManager object to the specified site name and mode.
Definition
Sub InitManager(bstrStoreKey As String,bstrMode As String)
Parameters
bstrStoreKey
A String that contains the name of the site.
bstrMode
A String that indicates how user information is to be stored. For more information about initialization modes, see the Remarks section.
Return Values
None.
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
The bstrMode parameter can take the following values:
Mode | Behavior |
Cookie | The PutShopperID method stores the shopper ID in a cookie on the client system. The GetShopperID method retrieves this cookie. |
url | The PutShopperID method appends the shopper ID to the URL, using MCSSIDUrlKey as the name part of the URL variable. The GetShopperID method retrieves the shopper ID from the URL. |
Cookieurl | The PutShopperID method stores the shopper ID in a cookie on the client system and in the URL. The GetShopperID method first attempts to retrieve the shopper ID from the cookie, and then from the URL. |
Urlcookie | The PutShopperID method stores the shopper ID in a URL, and stores it as a cookie on the client system. The GetShopperID method first attempts to retrieve the shopper ID from the URL, then from the cookie. |
This object is only included for purposes of backward compatibility with Site Server 3.0 Commerce Edition.
For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.
Example
' oStdSManager is a Commerce.StandardSManager object
oStdSManager.InitManager("mySiteName", "Cookie")