KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Activating the Password System for Web Connections
PRODUCT: 4D | VERSION: | PLATFORM:
Published On: August 5, 2000

You can now define the access control system you want to apply to your Web server in the Database Properties dialog box.

To define the password system, open the Database Properties dialog box and select the "Web Server II" tab.

Two options are available to you: "Use Passwords" and "Include 4D Passwords". The second check box is only active if the first one has been selected.

Use Passwords: activates the Web server's password system. For each connection, a dialog box appears on the browser so that the user can enter his name and password. These two values, as well as the connection parameters (IP address and port, URL...) are sent to the On Web Authentication database method so that you can process them.

Parameter Description
$1 URL
$2 HTTP header
$3 IP address of the Web client (browser)
$4 IP address of the server
$5 User name
$6 Password

You must declare these parameters as follows:

Note: For this option, if the On Web Authentication database method doesn't exist, the connection is refused.

Include 4D Passwords: allows you to use 4D's database password system, instead of or in addition to your own password system, (as defined in 4D). The Web access control system results from the combination of these options and the On Web Authentication database method.

Keep the following potential problems in mind when testing your Web Connection Security setup:

Once you enter a User ID and Password into your web browser, the browser will automatically continue sending them with every subsequent request to the same web site. To force the browser to clear the User ID and Password you must Quit the application, otherwise you may think there is a problem with 4D when it is actually the browser acting the way it is supposed to (but perhaps not the way you expect it to).

Most browsers maintain a cache of web pages on the local machine hard drive to speed future accesses to them (Netscape Navigator seems to be especially aggressive in attempts to cache visited pages). Always make sure you are getting results directly from your 4D web server and not your browser cache by hitting the reload button with the Shift key held down (Windows) or the Option key held down (Macintosh).

These two difficulties probably account for 90% of the calls to Technical Support regarding this feature.

For more information see "Web Services, Connection Security" which is available online at:

http://www.4D.com/acidoc/CMU/CMU02056.HTM