Skip to Content
Open Replay OpenReplay
DOCS
Search⌘+K
      Intro
    • Home
    • Getting started
    • Deployment
    • Deployment
    • Configuration
    • SDKs
    • JavaScript
      • Overview
      • Initialization
      • Methods
        • event
        • getSessionToken
        • getSessionID
        • getSessionURL
        • handleError
        • isActive
        • issue
        • setUserID
        • setUserAnonymousID
        • setMetadata
        • isFlagEnabled
        • reloadFlags
        • getFeatureFlag
        • getAllFeatureFlags
        • clearPersistFlag
        • start
        • stop
        • coldStart
        • startOfflineRecording
        • uploadOfflineRecording
        • forceFlushBatch
        • trackWs
        • incident
      • Network Options
      • Analytics
      • Sanitize Data
      • Private Mode
      • Frameworks
    • iOS (beta)
    • Android (beta)
    • React Native (beta)
    • Products
    • Session Replay
    • Product Analytics
    • Co-browsing
    • Platform
    • AI
    • Plugins
    • Integrations
    • API
    • Spot (Chrome Extension)
    • Materials
    • Exporting data
    • Troubleshooting
    • Tutorials
    • OpenReplay CLI
  • Join Slack Community
    Blog
    Browse GitHub
Search⌘+K
      Intro
    • Home
    • Getting started
    • Deployment
    • Deployment
    • Configuration
    • SDKs
    • JavaScript
      • Overview
      • Initialization
      • Methods
        • event
        • getSessionToken
        • getSessionID
        • getSessionURL
        • handleError
        • isActive
        • issue
        • setUserID
        • setUserAnonymousID
        • setMetadata
        • isFlagEnabled
        • reloadFlags
        • getFeatureFlag
        • getAllFeatureFlags
        • clearPersistFlag
        • start
        • stop
        • coldStart
        • startOfflineRecording
        • uploadOfflineRecording
        • forceFlushBatch
        • trackWs
        • incident
      • Network Options
      • Analytics
      • Sanitize Data
      • Private Mode
      • Frameworks
    • iOS (beta)
    • Android (beta)
    • React Native (beta)
    • Products
    • Session Replay
    • Product Analytics
    • Co-browsing
    • Platform
    • AI
    • Plugins
    • Integrations
    • API
    • Spot (Chrome Extension)
    • Materials
    • Exporting data
    • Troubleshooting
    • Tutorials
    • OpenReplay CLI
  • Join Slack Community
    Blog
    Browse GitHub

On this page

  • Overview
  • Signature
  • Return value

JavaScript SDK ⁠-⁠ getSessionID method

This page is not yet available in your language, so we’re showing you the English version. You can help by translating it! Learn more about how you can contribute

This method can be used to get the ID of the currently active session.

Signature

Section titled Signature
getSessionID(): string | null | undefined+

Return value

Section titled Return value

Returns the ID of the session being recorded.

On this page

  • Overview
  • Signature
  • Return value
Change Log   ↗

Support us by starring our repo!

GitHub Repo stars
  • OpenReplay
  • .
  • Privacy Policy
  • .
  • Terms