Commit e9069e1
committed
Use date-insensitive cookie expiration
On an out-of-time host (any raspberry offline and without working,
battery-backed RTC), the cookie expiration would likely be set to
a date in the past.
Connecting via a strict, time-synced device (iOS) would thus not
send (or even remove) the cookie set at credentials-sending\
resulting in a redirect to the login page.
We are now setting the expiration as a seconds offset from now,
that the client itself will interpret.
https://datatracker.ietf.org/doc/html/rfc6265#section-5.2.2
Fixes #81 parent ecb529c commit e9069e1
3 files changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
0 commit comments