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: 클라우드에서의 MongoDB 배포를 위한 완전 관리형 서비스

참고

이 명령은 모든 MongoDB Atlas 클러스터에서 지원됩니다. 모든 명령에 대한 Atlas 지원에 관해 자세히 알아보려면 지원되지 않는 명령을 참조하십시오.

명령은 다음과 같은 구문을 가집니다:

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

refreshSessions를 실행하려면 db.runCommand( { <command> } ) 메서드를 사용합니다.

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.

배포에서 인증/권한 부여를 시행하는 경우 refreshSessions 명령을 실행하려면 인증을 받아야 합니다.

A user can only refresh sessions belonging to the user.

다음도 참조하세요.