Skip to content

Investigate session invalidation from mismatched env credentials (li_at vs JSESSIONID) #7

@peggyrayzis

Description

@peggyrayzis

Context

CJ reported: one successful call (whoami or check) then immediate session expiry, requiring fresh tokens.

PR #6 addressed timezone hardcoding in X-Li-Track, but this symptom can also come from credential mismatch.

Hypothesis

The env card may occasionally provide a stale/mismatched li_at + JSESSIONID pair (tokens from different browser sessions), which can pass one endpoint and fail on the next stricter request.

Proposed work

  • Add explicit preflight validation that li_at and JSESSIONID are from the same active session (best-effort checks).
  • Improve error output when deletion redirect is detected, hinting at pair mismatch.
  • Document exact token extraction steps in README/env card guidance to avoid mixed pairs.

Acceptance criteria

  • Repro case with intentionally mixed tokens produces a clear diagnostic message.
  • Correct token pair no longer triggers ambiguous session expired messaging after first call.

Refs: #6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions