session problem
| From: | Robert Schaller | Date: | Tue, 22 May 2001 22:20:47 +0000 |
| Subject: | session problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-53947@lists.php.net to get a copy of this message | ||
Hi all,
I'm having the following problem. I have PHP-4.0.5 staticaly compiled
with apache 1.3.19, running on a red hat linux with a 2.2.12 Kernel.
The following script does not work the second time called, the browser
just "hangs" and returns a "this document is empty" after a while. I am
getting no error message in the log files and the session files are
being created in the tmp directory, they are empty though.
<?
session_name( "test" );
session_start();
$session_ok = session_register( "counter" );
if( $session_ok ){
echo( "Counter: ".++$counter );
}else echo( "failed" );
?>
Any ideas?
How can I get some kind of hint as to what is going wrong?
thanks,
Robert