S
S
snackovich2014-02-27 18:38:36
PHP
snackovich, 2014-02-27 18:38:36

How to read cookies in nginx?

How to read cookie values ​​and then use them?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vlad Zhivotnev, 2014-02-27
@snackovich

Their content is stored in the $http_cookie variable.

A
Alexander Sydorenko, 2015-05-26
@San40

myMap = new ymaps.Map("#map", {
                center: $('.geoadress').text().split(","),
                zoom: 7
 });

Actually, but there is a nuance here .. if your .geoadress is set not by static, but by geo-request, then at the time of map initialization, the geo-request may still not know the coordinates, since the result of the geo-request has not yet arrived. But if the vad has preset values ​​​​for "latitude, longitude" then everything should be ok.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question