D
D
Dilik Pulatov2017-07-18 16:17:19
Yii
Dilik Pulatov, 2017-07-18 16:17:19

Is it possible to save cookies in Yii2 via Ajax?

Hello!
when loading the page, the cookies are saved normally, but through ajax something went wrong
through ajax? or is there any other way when requesting ajax?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2017-07-18
@dilikpulatov

You are doing ajax, it asynchronously transmits and receives data, what does it have to do with cookies? You can get any data from ajax and then add it to cookies using js .
A more important question: "Do you need cookies to solve your problem." Describe the task. Maybe they are not needed at all?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question