Forum Moderators: coopster
Here's the deal (this is purely hypothetical):
Say you've got a file called "wrapper.php" which includes a file called "isendacookie.html"
It is clear that isendacookie.html gets called from my webserver (from wrapper.php) rather than my workstation. So where does the cookie get sent?
I've been having trouble retaining full cookie functionality through this process. Any good ideas on how to handle the problem? Unfortunately, I'm not able to recode so that wrapper.php sends the cookie instead.
To achieve cookie functionality in the PHP script the cookie has to be read by the script. So, you could include some nifty code snippet first in your file to retreive the cookie and set the applicable variables. If you then want to use some of that info in a JavaScript as well, you just have to echo it to the JS variable.
var something = <?php echo $myvar;?>;