M
M
migoz2020-05-04 16:21:07
JavaScript
migoz, 2020-05-04 16:21:07

Simulation of authorization through LocalStorage?

Hey! Please tell me how it is possible and if it is possible to implement an imitation of user authorization through LocalStorage: the user enters a login and password in the form, after submitting the form, his data gets into LS, then from the authorization page there is a redirect to another page, where in the header (for example, top panel) will display the same login of the current user.

Thanks in advance to all who respond!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hzzzzl, 2020-05-04
@hzzzzl

save the name here
https://jsfiddle.net/50a4ncdm/1/

reload this fiddle
https://jsfiddle.net/hf13waL4/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question