(path string)
| 48 | } |
| 49 | |
| 50 | func 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. |