Specifies whether the user resets his browser emulation after each transaction. This function enables you to generate a simulation of a user who visits a Web site for the first time — if you specify to clear the document cache, the document history, the cookie database, the authentication databases, and the SSL context cache — or a user who revisits a Web site.
WebAPI.bdh
WebSetUserBehavior(in nUserBehavior: number): boolean;
true if successful
false otherwise
Parameter | Description |
---|---|
nUserBehavior |
Specifies the user behavior. This parameter must be one of following values:
|
dcltrans transaction TInit begin WebSetDocumentCache(true, WEB_CACHE_CHECK_ALWAYS); // simulate a returning user, with all the documents // in the cache and cookies in the cookie database. WebSetUserBehavior(WEB_USERBEHAVIOR_REVISITING); end TInit;