Q:

PHP Using sessions to save two variables across project files

I am a little rusty on PHP. What I would like to do is save 2 variables to be used across my project. I would like to save the email and the password from my login page to be used later on to Parse my database on Parse.com.
Using reference link: [http://php.net/manual/en/book.session.php]

SOLVED, thank you @Fred -ii- for your help and explanations!
Login file:
try{

$query = new ParseQuery("Clients");
$query->equalTo("email", "$email");
$query->equalTo("password","$password");
$results = $query->find();

} catch(Exception $e){
echo $e->getMessage();

}
if(count($results)==1){
session_start();
$_SESSION['email'] = $email;
$_SESSION['password'] = $password;
 header("Location: http://localhost/ClientPortal/mainMenu.php");
}

mainMenu file:
   session_start();
   $email = $_SESSION['email'];
   $password = $_SESSION['password']; //* fixed spelling error (used to be 'passowrd')
   session_commit();

try{

   $query = new ParseQuery("Clients");
   $query->equalTo("email", "$email");
   $query->equalTo("password","$password");
   $results = $query->find();

   } catch(Exception $e){
  echo $e->getMessage();

   }

if(count($results)==1){
echo "<p align=center>1 correct row</p>";
}
else{
 echo "<p align=center>NO correct rows</p>";
}

A:

Thank you @Fred -ii- for helping me solve this!!!
Login file:
try{

$query = new ParseQuery("Clients");
$query->equalTo("email", "$email");
$query->equalTo("password","$password");
$results = $query->find();

} catch(Exception $e){
echo $e->getMessage();

}
if(count($results)==1){
session_start();
$_SESSION['email'] = $email;
$_SESSION['password'] = $password;
 header("Location: http://localhost/ClientPortal/mainMenu.php");
}

mainMenu file:
session_start();
$email = $_SESSION['email'];
$password = $_SESSION['password']; //* fixed spelling error (used to be 'passowrd')
session_commit();

try{

  $query = new ParseQuery("Clients");
  $query->equalTo("email", "$email");
 $query->equalTo("password","$password");
 $results = $query->find();

 } catch(Exception $e){
 echo $e->getMessage();

 }

if(count($results)==1){
echo "<p align=center>1 correct row</p>";
 }
 else{
 echo "<p align=center>NO correct rows</p>";
}

