WebSetCookies Function

Action

Sets the maximum number of cookies to be stored per domain. If the maximum is reached, older cookies are discarded. Setting nCookies to 0 disables cookie usage. The cookie database is created per user and kept in memory at run time only.

Include file

WebAPI.bdh

Syntax

WebSetCookies( in nCookies: number ): boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
nCookies Maximum number of cookies
注: A call to WebSetCookies will reset the cookie database and delete all existing cookies.

Example

dcltrans  transaction TWebInit  begin    WebSetCookies(10);    WebDumpSettings();  end TWebInit;

Sample scripts

WebMulti01.bdf