The file 'ExternalPlugin.jsp' is being executed by your server, and the contents returned and being saved into "$included_file". The problem exists because it is your server pulling the contents of this file.
Perhaps pass along some variables?
PHP Code:
function build_cookie_string()
{
global $cookies;
$string = array();
if (!empty($cookies))
{
foreach ($cookies as $cookie)
{
if (isset($_COOKIES[$cookie]))
{
$string[] = $cookie . '=' . $_COOKIES[$cookie];
}
}
}
return implode('&', $string);
}
$cookies = array(
'cookie1',
'cookie2',
'cookie3',
);
ob_start();
require_once('http://www.joshandfriends.com.au:45317/dancemusic/faces/ExternalPlugin.jsp?' . build_cookie_string());
$included_file = ob_get_contents();
ob_end_clean();
I haven't tested it, but if you could change that script to use http variables then you could do it that way, just change the cookie array for the cookies you want passing through
- Zero Tolerance