SslFlushSessionCache Function

Action

Clears all sessions from the SSL session cache so that all new connections will be authenticated and incur the public key operation overhead.

注: That existing connections are not terminated and therefore further use their negotiated session key.

Include file

WebAPI.bdh

Syntax

SslFlushSessionCache(): boolean;

Return value

  • true if successful

  • false otherwise

Example

dcltrans
  transaction TMain
  begin
    SslSetEncryption(SSL_VERSION_SSL3, SSL_CIPHERS_SSLv3);
    WebUrl("https://www.company.com");
    WebUrl("https://www.company1.com");
    WebUrl("https://www.company2.com");
    WebUrl("https://www.company3.com");
    // flush all negotiated sessions
    SslFlushSessionCache();
  end TMain;