by IgorPartola · 5y ago · 0 comments
Even if you could shrink that state down to something reasonably small, it still introduces the problem of the client and server getting the state out of sync.
Let me gently refer you to the classic paper from 1994, "A Note on Distributed Computing".
But it becomes much worse with mobile devices, such as a phone. I don't want to lose the state of my browser tabs every time I get into an elevator.
I guess it very much depends on your usage - I wonder the proportion of users who add to a shopping cart and go back to it without creating an account.
Of course, we're also ignoring session local storage, in memory storage etc... for alternate solutions.
Stealing tokens via XSS is way harder to solve.