Cross browser session


<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 ?

Override the session handler functions and handle them manually removing the browser as part of the equation. Probably not something that is within your skill range right now based on the questions you have been asking. I would move on to less advanced task and circle back around to this when you knowledge of PHP is more at an intermediate or advanced level. Though knowing how much you love the manual here you go.