localStorage data gets deleted on iPad after restarting

I have read that localStorage is a temporary data function(I didn’t even know that since iOS 5.1…) and I was surprised that it deleted all data. Anyways, is it a way to make be there as long as user wants(like on Windows or other devices)?

Also here’s link to code that are on GitHub.