• I hope I’ll get help before they have to put me in a straight jacket.

    Here is the situation:

    • I’m trying to add a cookie by javascript: region_id=11
    • Firefox confirms the cookie is present, with the right domain and path.
    • I try to read from $_COOKIE inside a widget
    • print_r($_COOKIE) outputs
    Array
    (
        [_icl_current_language] => fr
        [wordpress_test_cookie] => WP Cookie check
        [wordpress_logged_in_xxxxxxxxxxxxxxxxxxxxxxxxxxx] => kakidcm|xxxxxxxxxxxx|xxxxxxxxxxxxxxxxxxxxxxxx
        [wp-settings-time-1] => xxxxxxxxxxxxxxx
    )

    What? How? Hein? Tha Hell?

    I’ll keep trying to debug, and search the Web for an answer, but really, I need some help.

    Thanks in advance
    Charles

Viewing 1 replies (of 1 total)
  • Thread Starter Charles St-Pierre

    (@charleskakidcm)

    Can’t get this to work the way I taught it would. But I beginning to believe things just don’t work that way. It seems impossible for javascript to write a Cookie that php can read in $_COOKIE.

    Before anyone flame me about this: yes, I did run the javascript and then hit reload, or try to go to another page.

    Does anyone have any idea?

Viewing 1 replies (of 1 total)
  • The topic ‘Going insane with $_COOKIE going empty’ is closed to new replies.