I have a cookie and need to read it with JQuery or just javascript if JQuery alone is not possible.
Then I need to pass the value of that Cookie to a PHP variable
Can this be done?
UPDATE: I need everything to happen in the same page.
- Javascript reads the already existing cookie.
- $somePHPvariable = MyJavascriptCookieValue;
I need to use Javascript to read this cookie because I am using a wordpress cookie created in function.php and php cannot read the cookie when it's create but after the next reload of the page, which is no good to me.