views:

114

answers:

1

I'm wondering how long data exists inside of LocalStorage. What I've gathered is that it is permanent until cleared by the application or the user.

+1  A: 

The lifecycle is controlled by the application/user.

From the standard:

User agents should expire data from the local storage areas only for security reasons or when requested to do so by the user. User agents should always avoid deleting data while a script that could access that data is running.

jldupont