A project on which you are working calls for you to store small amount of frequntly changing information about a page on the client. For this project, SECURITY is not worried. Which method is thebest method to use
-
Cookies
-
A query String
-
A URL
-
A javascript function
-
A hidden form field
E
Correct answer
Explanation
Hidden form fields are ideal for storing small amounts of frequently changing page-specific data when security isn't a concern, as they persist with the page and form without the size limitations of cookies or URL complexity. Cookies have size limits (~4KB) and are sent with every HTTP request, while query strings and URLs are visible in the address bar and limited in length.