I am building a website that will require the user to enter a zipcode to navigate to any page that is not the home page. The zipcode will be sent to a database via an html form.
Would this be an occasion to use HTML5 local storage?
My idea is to use javascript to capture the zipcode the user enters into the form. When the user navigates to another page I could prevent a page load unless there is a zipcode present in local storage.
There is possibly another option, but I'm not sure it is a good way to go: HTTP Authentication with HTML Forms. This is authentication, but I'm not really looking to authenticate based on a specific username/password. I just want someone to enter a valid zipcode.
These are just some ideas I had on how to accomplish this goal. Would either of these work? Is there an alternative, better way to do this?
Environment: Orchard CMS (.NET MVC)