jquery - Hidden Fields vs. Local Storage -


I recently got to know about "local storage" and I have questions about it, a form of mine And in that form I have many hidden fields with IDs. I do not want to display the user, when the form is posted, then the ID is presented. I was thinking that instead of using the hidden areas, I can store those IDs in the local store and post them with the form data to be deposited on the server. IDs are loaded on all pageload servers. Which is more secure and if I am to use local storage then how do I apply it? I only try as much as possible to use the database id on the server side.

This is an example of a hidden field with ID:

   

If you want to become 'safe', then you are validating everything that the user post can be assured from your server that they have valid access, to resubmit The local storage and hidden areas are similar to a safety point of view - neither are they safe from tampering.

Never have trust user input.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -