nginx-quic, php able to access last set cookie only

Kareti Ramakrishna MBA karetirk at gmail.com
Sun Dec 19 18:24:38 UTC 2021


I implemented nginx-quic using the steps at
https://quic.nginx.org/readme.html

The page is validating http3 quic at https://http3check.net and
https://gf.dev/http3-test

The page elements show h3 protocol in developer tools network tab.

in a test.php page, I have set 3 php cookies like this:

<?php$q=setcookie('test1', 'content1', time()+315360000, '/', '',
true, true);$q=setcookie('test2', 'content2', time()+315360000, '/',
'', true, true);$q=setcookie('test3', 'content3', time()+315360000,
'/', '', true, true);?>

In test2.php in the same domain and same directory, I tried to access the
cookies :

<?php
var_dump($_COOKIE);?>

It is showing only the last set cookie.

 array(1) { ["test3"]=> string(8) "content3" }

all the three cookies are showing in developer tools.

Javascript is able to read all the three cookies :

<script>var decodedCookie = decodeURIComponent(document.cookie);
console.log('c='+decodedCookie);
</script>

If I use nginx http2, php is able to access all the three cookies.

But, If I use nginx http3, php is able to access only the last cookie.

Please help
Thanks
Krishna
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20211219/3e61192d/attachment.htm>


More information about the nginx-devel mailing list