O
O
OlegSedoy2018-05-28 16:42:19
WordPress
OlegSedoy, 2018-05-28 16:42:19

How to read cookies in ajax?

ajax request insert data into database

$roistat_visit = isset($_COOKIE['roistat_visit']) ? (int)$_COOKIE['roistat_visit'] : 777;

777 is written in the database
How to read cookies in ajax?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Ainur Valiev, 2018-05-31
@OlegSedoy

cookies must be read on the client side and passed to the php script

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question