KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Allow Automatic Login to HTML page with 4DAF objects
PRODUCT: 4D Web 2.0 Pack | VERSION: 1.1 | PLATFORM: Mac & Win
Published On: July 2, 2007
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

PLEASE NOTE: This Tech Tip applies to 4D Web 2.0 Pack version 1.1

When embedding 4DAF objects into a custom HTML page, it is necessary for the users to log in to the framework as they access the page. To make the log in automatic, the following code can be added in the BODY element of the HTML page:

<body onload="Login('Guest','');" onunload="dax_bridge.logout();">


Here, log in and log out procedures are specified for the OnLoad and OnUnload attributes of the BODY element.

The final step is to make this Guest user a valid 4DAF user (if they are not already). To do so, add the following line to Dav_DevHookLogin:
$loggedIn_b:=($userName_t="Guest")


The user Guest will now allowed access to the framework.

For the latest information on Web 2.0 Pack please go to:

http://daxipedia.4d.com