drupflare/worker - v1.0.4
    Preparing search index...

    Function drupalSessionRowId

    • Drupal's own session id, which is what sessions.sid holds.

      SessionHandler::read() keys on Crypt::hashBase64($sid) (base64 of the raw sha256, +/ to -_, padding stripped), never the cookie value. Golden vector from a deployed site: 78e0948463... hashes to TIkEn6fkVm-NaFDE5eDlIfIXxgfFJXI2XRRnMxjurwI.

      Parameters

      • cookieValue: string

      Returns Promise<string>