다음을 통해 공유


getSession(앱 프로필 관리자)

세션 ID에 대한 세션 개체를 반환합니다.

Syntax

Microsoft.Apm.getSession(sessionId);

매개 변수

**이름 유형 필수 설명
세션ID String Yes 세션 ID

반환 값

Session을 객체로 사용합니다.

Example

const sessionId = "session-id-1";
const session = Microsoft.Apm.getSession(sessionId);
if (!session.isDefault) {
    session.title = "new title";
}