Session output question
| From: | Susan Ator | Date: | Wed, 22 Oct 2003 17:42:53 +0000 |
| Subject: | Session output question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-167128@lists.php.net to get a copy of this message | ||
Two questions:
1) Is there any way to print out active sessions names?
I have $_SESSION['SID'], $_SESSION['uid'], $_SESSION['msg']
can I output the literal strings:
$_SESSION['SID']
$_SESSION['uid']
$_SESSION['msg']
2) Is there any way to use a variable in a session name?
can I do:
$msg="20031022"
$_SESSION["$msg.name"] becomes $_SESSION['20031022name']
I have set the session above then called the session output and got
what I expected to see; I need to make sure the $msg variable is expanded
though.
I am trying to create a personalized temporary session. I don't want to use
$_GET or $_POST since there will be too much info to be passed on the URL
and forms are not involved.
Susan