AI エージェント向け: ドキュメントインデックスは https://www.mongodb.com/ja-jp/docs/llms.txt で利用できます。すべてのページの markdown バージョンは、いずれかの URL パスに .md を追加することで利用できます。
Docs Menu

refreshSessions(データベースコマンド)

refreshSessions

The refreshSessions command updates the last use time for the specified sessions, thereby extending the active state of the sessions.

このコマンドは、次の環境でホストされている配置で使用できます。

  • MongoDB Atlas: The fully managed service for MongoDB deployments in the cloud

注意

This command is supported in all MongoDB Atlas clusters. For information on Atlas support for all commands, see Unsupported Commands.

  • MongoDB Enterprise: サブスクリプションベースの自己管理型 MongoDB バージョン

  • MongoDB Community: ソースが利用可能で、無料で使用できる自己管理型の MongoDB のバージョン

このコマンドの構文は、次のとおりです。

db.runCommand(
{
refreshSessions: [
{ id : <UUID> }, ...
]
}
)

To run refreshSessions, use the db.runCommand( { <command> } ) method.

db.runCommand(
{
refreshSessions: [
{ id : <UUID> }, ...
]
}
)

MongoDB concatenates each of the specified UUIDs with the hash of the authenticated user credentials to identify the user's sessions to refresh. If the user has no session that match, the refreshSessions has no effect.

If the deployment enforces authentication/authorization, you must be authenticated to run the refreshSessions command.

ユーザーは、ユーザーに属するセッションのみを更新できます。