session start error
| From: | André Castanheira | Date: | Mon, 29 Oct 2001 17:53:09 +0000 |
| Subject: | session start error | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-72750@lists.php.net to get a copy of this message | ||
Hi,
I use php 4.0.6 and I would like to do the following :
teste_classe1.php
<?
require ("classes.inc");
session_start();
echo("<html>");
echo("<body>");
session_register($tb);
$tb = new tabela("tb_area_interesse", "Área de Interesse");
?>
<a href=teste_classe2.php>teste_classe2</a>
</body>
</html>
teste_classe2.php
<?
require ("classes.inc");
session_start();
echo("<html>");
echo("<body>");
$result = $tb->qual_tabela();
echo $result;
session_unregister($tb);
session_destroy();
?>
</body>
</html>
When I load teste_classe1.php, its ok, but when I click on teste_classe2 link I
receive :
Fatal error: Call to a member function on a non-object
in /home/httpd/html/curriculum/adm/teste_classe2.php on line 6
any ideas ???
Obrigado,
André Castanheira
Carioca Engenharia S.A.
+55 21 3891-2200 r; 2325