<title>mySession1</title>
<?php
$_SESSION['$mySession']=1;
?>
<br>
<a href="mySession1.php"> mySession1</a><br>
<a href="mySession2.php"> mySession2</a><br>
<a href="mySession3.php"> mySession3</a><br>
<?php session_start(); ?>
<title>mySession2</title>
<?php
echo $_SESSION['$mySession'];
?>
<br>
<a href="mySession1.php"> mySession1</a><br>
<a href="mySession2.php"> mySession2</a><br>
<a href="mySession3.php"> mySession3</a><br>
<title>mySession1</title>
<?php
unset ($_SESSION['$mySession']);
?>
<br>
<a href="mySession1.php"> mySession1</a><br>
<a href="mySession2.php"> mySession2</a><br>
<a href="mySession3.php"> mySession3</a><br>
I have the 3 page like the above.
Because mySession2.php has “echo $_SESSION[‘$mySession’];”,
it should print the value “1” when you open the file through mySession1.
googleChrome prints the value “1”.
But fireFox doesn’t print it.
How can I make it Both googleChrome and fireFox print the value 1 ?