S
S
Scuba2018-05-16 11:18:31
PHP
Scuba, 2018-05-16 11:18:31

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

1 answer(s)
A
Alexey Ukolov, 2018-05-16
@targetologru

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 question

Ask a Question

731 491 924 answers to any question