Hi,
I am having some trouble with including a file from a external webpage
I have two servers on the main server I have set a session variable (eg. $name)
on that server I have a file that reads:
session_start();
echo "hello " . $_SESSION['name'];
when I run this on the main server it prints the value of $name as expected. eg. "hello john"
When I include this file from a external page. it does not print it out , it only prints out "hello" and nothign else. even though the session value has been previously set on the main server.
Is this something I am doing wrong , or is that just the way it works when including from external pages. Is there a way to get the value of session values like this?
I also tried readfile and that produced the same result, no session values when including from a external page.
Thank! 🙂