Setting a Session in an iFrame, then can't retrieve the info
Posted: Fri May 19, 2006 8:04 pm
Hi all,
I have an iframe, it contains a php file that I set some session data with:
I check that the data has been placed in the session by calling this (in the same iframe file):
It works by showing what was in $gst_total.
Now the problem!
I try and retrieve the session info from the parent document (the one that declares the iframe), using the same command:
and nothing! All it outputs is this:
If anyone has any suggestions I'd really appreciate it.
Rob
I have an iframe, it contains a php file that I set some session data with:
Code: Select all
$_SESSION['pos']['gst_total'] = $gst_total;Code: Select all
echo "gstsession = ".$_SESSION['pos']['gst_total']."<br>";Now the problem!
Code: Select all
echo "gstsession = ".$_SESSION['pos']['gst_total']."<br>";and nothing! All it outputs is this:
Code: Select all
gstsession =Rob