Jquery to php variable in the same page without refresh
<p>I am working on a small PHP script hosted on Nginx + CloudFlare and it seems like there is a problem with headers. The problem is cookies sometimes there is a confusion so Nginx send false headers with false cookies so i can't get the right cookies using : $_COOKIE but when using document.cookie i still can get the right cookie so is there any solution to pass the document.cookie variable into PHP in the same page without refresh ?
Javascript : </p>

<pre><code>Document.cookie
</code></pre>

<p>Or is there any solution for the headers issue ?</p>