MCPcopy Index your code
hub / github.com/ZenNotes/zennotes / newSessionStore

Function newSessionStore

apps/server/internal/httpserver/security.go:50–54  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

48}
49
50func newSessionStore(path string) *sessionStore {
51 s := &sessionStore{sessions: make(map[string]time.Time), path: path}
52 s.load()
53 return s
54}
55
56// load restores persisted sessions, dropping any already expired. Best-effort:
57// a missing/unreadable/corrupt file just starts with no sessions.

Callers 4

NewFunction · 0.85

Calls 1

loadMethod · 0.95