FW: How to print the registered session variables??
| From: | ArsenKirillov | Date: | Mon, 15 Oct 2001 09:37:48 +0000 |
| Subject: | FW: How to print the registered session variables?? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-71079@lists.php.net to get a copy of this message | ||
-----Original Message-----
From: Balaji Ankem [mailto:balaji.ankem@wipro.com]
Sent: Monday, October 15, 2001 7:44 AM
To: php-general@lists.php.net
Subject: How to print the registered session variables??
Hi,
I have registered two session variables with the names user and pw.
Please tell me how to print those session vars??
Is it needed to call session_register("varname") before printing the
session variable "varname"??
Thanks and regards
-Balaji
-----
1.$a=get_defined_vars
2. for (session_is_registered($a[$i])) echo ...
Just an idea ...