Is it possible to put a session in the AJAX request?

Task:
To pass a string from input file handler for AJAX, but to limit the number of requests from the same client.

Can I script the handler to put session ($_SESSION) if it is requested via AJAX? And, for example, the script processor looks in the session for each call, and if, for example, the limit has been reached, it returns an error.
June 5th 19 at 21:46
2 answers
June 5th 19 at 21:48
Solution
From the server's point of view there is no difference between driving of the address by the hands of the user in the browser and ajax request no.
June 5th 19 at 21:50
Solution
can

Find more questions by tags AJAXPHPSessions