4 ms·
Name a localstorage auth mechanism on 1st request ?
by duqd_ 6y ago
Name a localstorage auth mechanism on 1st request ?
- austincheney 6y agoIf you don’t already have a valid session cookie name a cookie solution to first request authentication. With a local storage solution I would embed a session hash in some dynamically written HTML or a response header that is then stored in localStorage and then on every subsequent page request in the current HTTPS session send back that session hash prepended with a salt in the https request header. Then it’s always on initial page request but only after the session is established by the server.