MongoDB\Driver\Session::getLogicalSessionId
(mongodb >=1.4.0)
MongoDB\Driver\Session::getLogicalSessionId — Returns the logical session ID for this session
说明
Returns the logical session ID for this session, which may be used to identify this session's operations on the server.
参数
此函数没有参数。
返回值
Returns the logical session ID for this session.
错误/异常
- Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.