Self-Registration with Commerce Server 2002

 <  Day Day Up  >  

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.

  1. 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.

  2. Stop the IIS service while you modify the ASP files.

  3. Open the SupplierAD site in Commerce Server Manager. Expand Site Resources .

  4. Click App Default Config .

  5. In the Commerce Server Resource pane, right-click Site Registration Options , then select Properties .

  6. 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.

  7. Create the registration page newuser.asp in the www.root/supplierAD/Authfiles directory.

  8. Cut and paste the sample code from the online help file.

  9. 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" .

  10. Update the login.asp code to provide a link to newuser.asp.

  11. 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.


 <  Day Day Up  >  


Building Portals, Intranets, and Corporate Web Sites Using Microsoft Servers
Building Portals, Intranets, and Corporate Web Sites Using Microsoft Servers
ISBN: 0321159632
EAN: 2147483647
Year: 2004
Pages: 164

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net