RE: [PHP-WIN] Session - Cannot recall variable
| From: | Aziz Durmaz | Date: | Tue, 14 May 2002 07:55:49 +0000 |
| Subject: | RE: [PHP-WIN] Session - Cannot recall variable | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-13742@lists.php.net to get a copy of this message | ||
try this;
-------------------------------------------------
session_start();
session_register("counter");
print($counter[num]);
$counter[num]++;
-------------------------------------------------
-----Original Message-----
From: Donny Hariady [mailto:donny.hariady@bostinco.com]
Sent: Tuesday, May 14, 2002 10:34 AM
To: php-windows@lists.php.net
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 <donny.hariady@bostinco.com>
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