Is there a limit to the key length for localStorage?

Is there any limit (up to the amount of local storage available) for the key when using localStorage?

i.e. can I do something like:

localStorage.setItem("pretend that this is a 1MB string", "whatever"); 

Answers


Yes, the limit is 5MB per domain. Your string can be as long as you want. The total usage must, however, be under 5 MB.

http://dev.w3.org/html5/webstorage/

http://www.stackoverflow.com/questions/2747285/html5-localstorage-restrictions-and-limits


Need Your Help

tweepy verifier runtime error

python api twitter tweepy

I am trying to run a simple app using twitter API wraper called tweepy (with Python), and I can't get past the verifier step.

How do I configure freeglut to work with Code::Blocks

c++ codeblocks freeglut

I would like to know how to configure freeglut to work with the Code::Blocks IDE and minGW compiler. I don't have much experience with Code::Blocks and I have tried both glut and freeglut for ages....

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.