views:

52

answers:

1

How Does localStorage in HTML5 works ?? I searched every where (even in SO ) to find the actual internal logic of localStorage, but I ended up with visiting some examples which uses localStorage. I haven't found any useful Answer to my question. Can Someone post me a link or explain about the working of localStorage

+3  A: 

I'm not necessarily sure what you're looking for here...but the internal implementation of localStorage is going to be browser specific. I wouldn't count on any two browsers implementing the feature the same way internally (just like everything, the implementation and performance will give each browser a different advantage).

If you're really interested, I'd suggest pulling down the Chromium source and seeing how they implement things internally.

Justin Niessner
Or view the Firefox implementation at http://hg.mozilla.org/releases/mozilla-1.9.2/file/b2da18a3f256/storage/src
Marcel Korpel