Mercurial > hg > nginx-site
changeset 2597:c9545c331582
Added the userid_flags directive.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Tue, 29 Sep 2020 15:52:05 +0100 |
parents | 27c757648399 |
children | 361a28cca097 |
files | xml/en/docs/http/ngx_http_userid_module.xml xml/ru/docs/http/ngx_http_userid_module.xml |
diffstat | 2 files changed, 48 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_userid_module.xml Tue Sep 29 17:40:51 2020 +0300 +++ b/xml/en/docs/http/ngx_http_userid_module.xml Tue Sep 29 15:52:05 2020 +0100 @@ -10,7 +10,7 @@ <module name="Module ngx_http_userid_module" link="/en/docs/http/ngx_http_userid_module.html" lang="en" - rev="4"> + rev="5"> <section id="summary"> @@ -125,6 +125,29 @@ </directive> +<directive name="userid_flags"> +<syntax> + <literal>off</literal> | + <value>flag</value> ...</syntax> +<default>off</default> +<context>http</context> +<context>server</context> +<context>location</context> +<appeared-in>1.19.3</appeared-in> + +<para> +If the parameter is not <literal>off</literal>, +defines one or more additional flags for the cookie: +<literal>secure</literal>, +<literal>httponly</literal>, +<literal>samesite=strict</literal>, +<literal>samesite=lax</literal>, +<literal>samesite=none</literal>. +</para> + +</directive> + + <directive name="userid_mark"> <syntax> <value>letter</value> | <value>digit</value> |
--- a/xml/ru/docs/http/ngx_http_userid_module.xml Tue Sep 29 17:40:51 2020 +0300 +++ b/xml/ru/docs/http/ngx_http_userid_module.xml Tue Sep 29 15:52:05 2020 +0100 @@ -10,7 +10,7 @@ <module name="Модуль ngx_http_userid_module" link="/ru/docs/http/ngx_http_userid_module.html" lang="ru" - rev="4"> + rev="5"> <section id="summary"> @@ -124,6 +124,29 @@ </directive> +<directive name="userid_flags"> +<syntax> + <literal>off</literal> | + <value>флаг</value> ...</syntax> +<default>off</default> +<context>http</context> +<context>server</context> +<context>location</context> +<appeared-in>1.19.3</appeared-in> + +<para> +Если параметр не <literal>off</literal>, +задаёт один или несколько дополнительных флагов для куки: +<literal>secure</literal>, +<literal>httponly</literal>, +<literal>samesite=strict</literal>, +<literal>samesite=lax</literal>, +<literal>samesite=none</literal>. +</para> + +</directive> + + <directive name="userid_mark"> <syntax> <value>буква</value> | <value>цифра</value> |