CopyPastor

Detecting plagiarism made easy.

Score: 0.9999987813528364; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2020-08-04
by Abdelrahman Gamal

Original Post

Original - Posted on 2013-10-24
by Krzysztof Cieslak



            
Present in both answers; Present only in the new answer; Present only in the old answer;

I guess You can't. The whole point of local storage is that it is local and You can manipulate it only from javascript. If You need to pass values between server and client You need to use some transport technology - cookies, ajax calls, hidden fields etc. It will all depend on how your application is organized, what kind of information is being stored, its volume, whether you want to redirect or not, but in all cases this should be done using javascript since that's the only way to access data stored in localStorage
I guess You can't. The whole point of local storage is that it is local and You can manipulate it only from javascript. If You need to pass values between server and client You need to use some transport technology - cookies, ajax calls, hidden fields etc. It will all depend on how your application is organized, what kind of information is being stored, its volume, whether you want to redirect or not, but in all cases this should be done using javascript since that's the only way to access data stored in localStorage.

        
Present in both answers; Present only in the new answer; Present only in the old answer;