Fortinet white logo
Fortinet white logo

Script Reference Guide

SSL:session(t)

SSL:session(t)

Allows you to get SSL session ID, reuse the session, or remove it from the cache.

Syntax

SSL:session(t);

Arguments

Name Description

t

A table which specifies the operation to the session.

Events

Applicable in the following events:

  • CLIENTSSL_HANDSHAKE

  • SERVERSSL_HANDSHAKE

  • SERVERSSL_RENEGOTIATE

  • WAF_REQUEST_ATTACK_DETECTED

  • WAF_REQUEST_BEFORE_SCAN

Example

when CLIENTSSL_HANDSHAKE {
t={}
t[“operation”] = “get_id”;  --can be “get_id” or “remove” or “reused”
sess_Id = SSL:session(t)
if sess_id then
id = to_HEX(sess_id)
debug(“client sess id %s\n”, id)
else
sess_id = “FALSE”
end
}

Supported Version

FortiADC version 5.0.x and later.

SSL:session(t)

SSL:session(t)

Allows you to get SSL session ID, reuse the session, or remove it from the cache.

Syntax

SSL:session(t);

Arguments

Name Description

t

A table which specifies the operation to the session.

Events

Applicable in the following events:

  • CLIENTSSL_HANDSHAKE

  • SERVERSSL_HANDSHAKE

  • SERVERSSL_RENEGOTIATE

  • WAF_REQUEST_ATTACK_DETECTED

  • WAF_REQUEST_BEFORE_SCAN

Example

when CLIENTSSL_HANDSHAKE {
t={}
t[“operation”] = “get_id”;  --can be “get_id” or “remove” or “reused”
sess_Id = SSL:session(t)
if sess_id then
id = to_HEX(sess_id)
debug(“client sess id %s\n”, id)
else
sess_id = “FALSE”
end
}

Supported Version

FortiADC version 5.0.x and later.