changeset 1544:627a9309011c

Renamed cookie in the example of the sticky directive.
author Yaroslav Zhuravlev <yar@nginx.com>
date Thu, 05 Mar 2015 13:01:06 +0300
parents 08242a0abf11
children e66acc310eb6
files xml/en/docs/http/ngx_http_upstream_module.xml xml/ru/docs/http/ngx_http_upstream_module.xml
diffstat 2 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_upstream_module.xml	Tue Aug 04 13:37:33 2015 +0300
+++ b/xml/en/docs/http/ngx_http_upstream_module.xml	Thu Mar 05 13:01:06 2015 +0300
@@ -10,7 +10,7 @@
 <module name="Module ngx_http_upstream_module"
         link="/en/docs/http/ngx_http_upstream_module.html"
         lang="en"
-        rev="40">
+        rev="41">
 
 <section id="summary">
 
@@ -1018,14 +1018,14 @@
    server backend2.example.com:8081;
 
    sticky learn
-          create=$upstream_cookie_sessionid
-          lookup=$cookie_sessionid
+          create=$upstream_cookie_examplecookie
+          lookup=$cookie_examplecookie
           zone=client_sessions:1m;
 }
 </example>
 
 In the example, the upstream server creates a session by setting the
-cookie “<literal>SESSIONID</literal>” in the response.
+cookie “<literal>EXAMPLECOOKIE</literal>” in the response.
 Further requests with this cookie will be passed to the same server.
 If the server cannot process the request, the new server is
 selected as if the client has not been bound yet.
--- a/xml/ru/docs/http/ngx_http_upstream_module.xml	Tue Aug 04 13:37:33 2015 +0300
+++ b/xml/ru/docs/http/ngx_http_upstream_module.xml	Thu Mar 05 13:01:06 2015 +0300
@@ -10,7 +10,7 @@
 <module name="Модуль ngx_http_upstream_module"
         link="/ru/docs/http/ngx_http_upstream_module.html"
         lang="ru"
-        rev="40">
+        rev="41">
 
 <section id="summary">
 
@@ -1020,14 +1020,14 @@
    server backend2.example.com:8081;
 
    sticky learn
-          create=$upstream_cookie_sessionid
-          lookup=$cookie_sessionid
+          create=$upstream_cookie_examplecookie
+          lookup=$cookie_examplecookie
           zone=client_sessions:1m;
 }
 </example>
 
 В примере выше сервер группы создаёт сессию путём установки
-куки “<literal>SESSIONID</literal>” в своём ответе.
+куки “<literal>EXAMPLECOOKIE</literal>” в своём ответе.
 Последующие запросы с этой кукой будут передаваться на этот же сервер.
 Если сервер не может обработать запрос, выбирается новый
 сервер как если бы клиент не имел привязки к серверу.