定義
refreshSessionsThe
refreshSessionscommand 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.
ユーザーは、ユーザーに属するセッションのみを更新できます。