getServerSession | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Function getServerSession

    • Get session data

      Type Parameters

      Parameters

      • scope: S

        Scope for session

      • sessionId: string

        Session id. If this session was created in HareScript, make sure it has the json:true option set

      Returns Promise<null | SessionScopes[S]>

      Session data or null if session has expired

    • Get session data

      Parameters

      • scope: string

        Scope for session

      • sessionId: string

        Session id. If this session was created in HareScript, make sure it has the json:true option set

      Returns Promise<null | object>

      Session data or null if session has expired