How to get a list of browser cookies using PHP?

From my understanding $_COOKIEgives me all cookies in a user browser.

But when I do

var_dump($_COOKIE);

I get the following:

Array
    (
        [wp-settings-1] => m8=o&m2=o&m5=o&m4=o&m3=o&m1=o&m7=o&m0=o
        [wp-settings-time-1] => 1329859655
        [PHPSESSID] => ST88bLB7PE5S9BbY5oXxLgDIcas
    )

This list does not match the list that I see in the browser. For example, PHPSESSID is not in the cookie list in my browser. Am I accessing the wrong variable?

Thank.

+5
source share
2 answers

, $_COOKIE cookie /. cookie . , , - / HTTP-. HTTP-, cookie . , HTTP-.

+3

, ho , , ! -, , , thkk something else

-1

All Articles