Hello,
I'm developping an application using php, and html frames.
In my script which contains frame definitions, I start the session with the
session_start function, and then I record the variable `$session' thanks to
session_register("session"). In the different frames, I use the function
session_start to recover the variable. This works (I mean that the isset
function returns TRUE) with the following browsers :
I.E.3, I.E.4, I.E.5, Netscape (4.6, 4.75 under Linux), Opera 5.0beta (under
Linux), Mozilla 0.8.1 under Linux, but NOT with netscape 4.x under Windows.
So, is there anyone who can help me to find a solution to this problem.
I have attached to this mail the scripts which are concerned. The one who
contains the frames description and which have to be called in the browser is
`frame.php4'.
In advance, thank you.
Gaƫl
finally, attaching them doesn't seem to work, files follow below
<?php
//frame.php4
session_start() ;
$session= "Hello World !" ;
session_register("session") ;
echo "\n".
"<head>\n".
"<title>FRAME</title>\n".
"</head>\n".
"<frameset rows=\"40,\" frameborder=no border=1>\n".
"<frame name=\"frame1\" src=\"frame1.php4\" noresize ".
"scrolling=no>\n".
"<frameset cols=\"160,\" frameborder=yes border=2>\n".
"<frame name=\"frame2\" src=\"frame2.php4?variable=1\" ".
"scrolling=auto>\n".
"<frame name=\"main\" src=\"main.php4\">\n".
"</frameset>\n".
"<NOFRAMES>".
"If you want to view this site, you have to use ".
"a browser which supports frames.".
"</NOFRAMES>\n".
"</frameset>\n".
"\n" ;
?>
<?php
//frame1.php4
session_start() ;
if(isset($session)) $msg= "It works, \$msg contains : $session" ;
else $msg= "It doesn't work" ;
echo "\n".
"<head>\n".
"<title>FRAME1</title>\n".
"</head>\n".
"<body>\n".
$msg.
"</body>\n".
"\n" ;
?>
<?php
//frame2.php4
session_start() ;
if(isset($session)) $msg= "It works, \$msg contains : $session" ;
else $msg= "It doesn't work" ;
echo "\n".
"<head>\n".
"<title>FRAME2</title>\n".
"</head>\n".
"<body>\n".
$msg.
"</body>\n".
"\n" ;
?>
<?php
//main.p
session_start() ;
if(isset($session)) $msg= "It works, \$msg contains : $session" ;
else $msg= "It doesn't work" ;
echo "\n".
"<head>\n".
"<title>MAIN</title>\n".
"</head>\n".
"<body>\n".
$msg.
"</body>\n".
"\n" ;
?>