File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -451,7 +451,8 @@ Sessions
451
451
.. code-block:: shell
452
452
453
453
var session = db.getMongo().startSession()
454
- var sessionId = session.getSessionId().id
454
+ var sessionId = session
455
+ sessionId // show the sessionId
455
456
456
457
var cursor = session.getDatabase("examples").getCollection("data").find().noCursorTimeout()
457
458
var refreshTimestamp = new Date() // take note of time at operation start
Original file line number Diff line number Diff line change @@ -98,7 +98,8 @@ session using the :dbcommand:`refreshSessions` command. For example:
98
98
.. code-block:: javascript
99
99
100
100
var session = db.getMongo().startSession()
101
- var sessionId = session.getSessionId().id
101
+ var sessionId = session
102
+ sessionId // show the sessionId
102
103
103
104
var cursor = session.getDatabase("examples").getCollection("data").find().noCursorTimeout()
104
105
var refreshTimestamp = new Date() // take note of time at operation start
Original file line number Diff line number Diff line change @@ -51,7 +51,8 @@ session using the :dbcommand:`refreshSessions` command. For example:
51
51
.. code-block:: shell
52
52
53
53
var session = db.getMongo().startSession()
54
- var sessionId = session.getSessionId().id
54
+ var sessionId = session
55
+ sessionId // show the sessionId
55
56
56
57
var cursor = session.getDatabase("examples").getCollection("data").find().noCursorTimeout()
57
58
var refreshTimestamp = new Date() // take note of time at operation start
You can’t perform that action at this time.
0 commit comments