Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<MongoDB\Driver\Session::getClusterTimeMongoDB\Driver\Session::getOperationTime>
^MongoDB\Driver\SessionLast updated: Mon, 26 Oct 2026

MongoDB\Driver\Session::getLogicalSessionId

(mongodb >=1.4.0)

MongoDB\Driver\Session::getLogicalSessionId — Returns the logical session ID for this session

Description

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

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


<MongoDB\Driver\Session::getClusterTimeMongoDB\Driver\Session::getOperationTime>
^MongoDB\Driver\SessionLast updated: Mon, 26 Oct 2026