<?php
class Auth {
  // properties
  var $one   = "";
  var $two   = "";
  var $three = "";
  
  function setThree() {
    $this->three = "variable three set by object";
  }
}
?>
<?
session_start();
$auth = new Auth();
session_register("auth");
$auth->one = "variable one";
$auth->two = "variable two";
$auth->setThree();
?>
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
  <title>Logon</title>
</head>
<body>
one  : <?= $auth->one ?><br>
two  : <?= $auth->two ?><br>
three: <?= $auth->three ?>
<form action="test2.php" method="post">
<input type="text" name="user">
<input type="text" name="id">
<input type="submit">
</form>
<p>
<a href="test2.php">go to page 2</a>
</body>
</html>  
