Fortinet white logo
Fortinet white logo

Script Reference Guide

MGM:get_session_id()

MGM:get_session_id()

Returns the session ID.

Syntax

MGM:get_session_id();

Arguments

N/A

Events

Applicable in all events except VS_LISTENER_BIND

Example

when HTTP_REQUEST {
sid = MGM:get_session_id()
debug(“session id: %s\n”, sid)
}

Supported Version

FortiADC version 5.0.x and later.

MGM:get_session_id()

MGM:get_session_id()

Returns the session ID.

Syntax

MGM:get_session_id();

Arguments

N/A

Events

Applicable in all events except VS_LISTENER_BIND

Example

when HTTP_REQUEST {
sid = MGM:get_session_id()
debug(“session id: %s\n”, sid)
}

Supported Version

FortiADC version 5.0.x and later.