try this;
-------------------------------------------------
session_start();
session_register("counter");
print($counter[num]);
$counter[num]++;
-------------------------------------------------
-----Original Message-----
From: Donny Hariady [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 10:34 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Session - Cannot recall variable
This is my first experience with PHP session manager. I try the following
code:
session_start();
print($counter);
$counter++;
session_register("counter");
I found that PHP writes a sess_something file in its save_path directory.
When I refresh my browser, PHP updates this file but my browser still empty
and the content of the file is unchanged. I cannot recall my saved variable!
Somebody help me please... :(
Donny Hariady <[EMAIL PROTECTED]>
UIN: 16782504
... General Brain Failure ! (A)bort, (R)etry, (I)gnore, (O)h
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php