S
S
serjee2018-05-17 13:47:43
PHP
serjee, 2018-05-17 13:47:43

How to make authorization in PHP on a site that uses localstorage?

Good afternoon experts.
There is a task of automated authorization on the site using PHP.
Localstorage (browser-side storage) is used as a storage location for authorization keys.
In cURL, which I usually use for authorization on sites, there is no way to get / save and return localstorage data.
What means in PHP (libraries, functions, etc.) exist for receiving / passing data sent to localstorage?
Thank you all very much for your help. If the essence of the question is poorly described, let me know, I will write in more detail.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Valery, 2018-05-17
@it_monk

The localstorage technology does not provide for sending to the server. If the developer needs to transfer some data from localstorage to the server, then this has to be done through AJAX, having previously formed the necessary data set.
In answer to your question: no way. On the site you want to work with, data from localstorage is transmitted to the server via AJAX, in which way it depends on the implementation, maybe through the header, maybe through the body, respectively, you need to find out and emulate such a request through curl.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question