You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pages: two servers under localhost make each other's pages "out of date" #493
P2 · Planned: limited in scope, has a way around it, or a missing feature
Evidence
Two servers under one name on two ports, in one Chromium. As with an SSH tunnel to another machine's Nullius beside one's own.
localhost:8631 and localhost:8632
cookies session, localhost: one for both
a write on the first page 200
the second server's page opened in a tab
the same write on the first page 403, X-Nullius-Reason: stale-form-token
the first page shows This page is out of date. Reload it.
the first page reloaded, the write 200
a write on the second page 403, X-Nullius-Reason: stale-form-token
localhost:8631 and 127.0.0.1:8632
cookies session, localhost; session, 127.0.0.1
every write on either page 200
A browser keeps one cookie jar per name, whatever the port. Each server signs session with its own key, so it reads the other's as empty and replaces it.
Way around: open one as localhost, the other as 127.0.0.1.
Reproduction
nullius serve --port 8631, and --port 8632 with another NULLIUS_HOME.
One browser: localhost:8631/settings, then localhost:8632/settings in a second tab.
Activity