This page is about client side data (ie stateless session) in the browser.
In-browser databases that wrap browser storage capabilities:
Secure or sensitive data should not be stored persistently in browser data stores as they should be treated as insecure storage.
Because the Web Storage mechanisms are APIs, they can be accessed from injected scripts, making it less secure than cookies with the httponly flag applied.