You need to transfer this information from the client to the server using standard HTTP methods. Using javascript, you can fill in:
- Hidden fields
- Query String Parameters
- Post
- Ajax call to server
- ...
It all depends on how your application is organized, what information is stored, its volume, whether you want to redirect or not, but in all cases this should be done using javascript, as this is the only way to access the data stored in localStorage.
Darin Dimitrov
source share