Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Name a localstorage auth mechanism on 1st request ?


If 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: