﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
2061	cookie lost in nginx-quic under http/3	Yongbing Zhao		"Hi 

I installed nginx-quic (02ee77f8d53d) on my server. Overall, it works well. However, I found there is some issue with cookie. 

Thus, I tested my hypothesis with two simple php scripts (attched below). 

First, visit **write.php** to create cookie, and then visit **read.php** to retrieve cookie.

The result is that:

When I visit **read.php** by chrome with http/2, everything is OK.

However, when I visit **read.php** by chrome with h3-29, the cookie lost. 


**write.php**
{{{
<?php
$value = 'something from somewhere';
setcookie(""TestCookie"", $value);
setcookie(""TestCookie"", $value, time()+3600); 
setcookie(""TestCookie"", $value, time()+3600, ""/~rasmus/"", ""example.com"", 1);
?>
}}}

**read.php**
{{{
<?php
echo $_COOKIE[""TestCookie""];
echo ""\n--------------\n"" ;
print_r($_COOKIE);
?>
}}}








"	defect	closed	critical	nginx-1.19	nginx-core	1.19.x	worksforme	cookie		Linux vps 4.18.0-193.6.3.el8_2.x86_64 #1 SMP Wed Jun 10 11:09:32 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux	"nginx version: nginx/1.19.3
built by gcc 8.3.1 20191121 (Red Hat 8.3.1-5) (GCC)
built with OpenSSL 1.1.1 (compatible; BoringSSL) (running with BoringSSL)
TLS SNI support enabled
configure arguments: --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_v2_module --with-http_gzip_static_module --with-http_sub_module --with-stream --with-http_v3_module --with-cc-opt=-I../boringssl/include --with-ld-opt='-L../boringssl/build/ssl -L../boringssl/build/crypto' --with-http_quic_module --with-stream_quic_module --with-pcre=/data/package/lnmp/lnmp1.7/src/pcre-8.42"
