There is no standard for the persistence of localStorage data. While it would survive a browser close, browsers vary in how they handle the data and users can clear the data manually, so it is best used for short-term needs. So if your data is more complex than cookies normally handle and you want the data to be reliably stored for any extended period, it's best to find a server-based solution (ie. a database).