Answer the question
In order to leave comments, you need to log in
Is it possible to set a session on an AJAX request?
Task:
Pass a string from the input to the handler file via AJAX, but limit the number of requests from one client.
Can I put a session ($_SESSION) in the handler script if it is requested via AJAX? And, for example, the handler script looks at the session every time it is called, and if, for example, the limit is reached, it returns an error.
Answer the question
In order to leave comments, you need to log in
From the server's point of view, there is no difference between typing in the address with the user's hands into the browser line and an ajax request.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question