MongoDB\Driver\Session::getLogicalSessionId

Returns the logical session ID for this session

Description

final public object MongoDB\Driver\Session::getLogicalSessionId()

Returns the logical session ID for this session, which may be used to identify this session's operations on the server.

Parameters

This function has no parameters.

Return Values

Returns the logical session ID for this session.

Errors/Exceptions

  • Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.