| Commerce Server 2002 ships with a sample site called the Supplier Solution site (also known as the SupplierAD site) that includes code for implementing self-registration. The sample site provides a good way to see this self-registration functionality in action and take a closer look at the objects and code. - Follow the instructions in the Commerce Server 2002 Enterprise Edition online help to install the sample site. The site requires two computers to demonstrate all its functionality.
- Stop the IIS service while you modify the ASP files.
- Open the SupplierAD site in Commerce Server Manager. Expand Site Resources .
- Click App Default Config .
- In the Commerce Server Resource pane, right-click Site Registration Options , then select Properties .
- Change the Selected Property Value to 1 in the Site Registration Options Properties and then click OK . Additional property values and their meanings are shown in Table 7.2.
- Create the registration page newuser.asp in the www.root/supplierAD/Authfiles directory.
- Cut and paste the sample code from the online help file.
- Edit the global_siteconfig_lib.asp file to correctly reference the newuser.asp file you created. Replace the line with the text string dictPages.NewUser with dictPages.NewUser = "authfiles/newuser.asp" .
- Update the login.asp code to provide a link to newuser.asp.
- Restart IIS.
Table 7.2. Site Registration Options Properties | Login Option | Value | Description | | FORM_LOGIN_NOT_SUPPORTED | | Login is not supported. | | FORCE_LOGIN_ON_ENTRANCE | 1 | Login is required to enter the site. | | LOGIN_OPTIONAL_ON_ENTRANCE | 2 | Login is optional on entering the site. | | FORCE_LOGIN_ON_PURCHASE | 5 | Login is required at the time of purchase. | | LOGIN_OPTIONAL_ANY_TIME | 6 | Login is optional at any time. This is the default for the Retail site. | | USE_IIS_AUTH | 7 | Authentication is through Internet Information Services (IIS) using basic or integrated Windows authentication. | |