Skip to content

feat(session): refresh grace for HTTP activity - #542

Closed
linkdata wants to merge 7 commits into
mainfrom
codex/feat/http-session-touch
Closed

linkdata wants to merge 7 commits into
mainfrom
codex/feat/http-session-touch

Conversation

@linkdata

@linkdata linkdata commented Nov 4, 2026

Copy link
Copy Markdown
Owner

Summary

JaWS sessions created for authenticated HTTP pages expire after one minute because ordinary HTTP requests do not attach a WebSocket. Add Session.Touch() bool to extend the grace window for a current live session. It refuses expired, closed, and replaced sessions.

Document the required authorization, false-result handling, and Cache-Control: no-store for protected responses. Cover HTTP expiry, attached requests, stale and closed sessions, and concurrent replacement.

Checks

  • go test ./... -count=1
  • go test -race -run 'TestSession_Touch' -count=20
  • go vet ./...
  • git diff --check origin/main...HEAD

@linkdata linkdata closed this Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant