It seems really easy to trip up Safari into trashing localStorage
, even before its 7-day window. For example, if I load the same site in private browsing mode, then go back to the regular session, the cookies remain but not localStorage
. Seems like a bug, or privacy protection gone awry.