reading the session-id
| From: | Christian Ruppnig | Date: | Sun, 06 Aug 2000 08:55:59 +0000 |
| Subject: | reading the session-id | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-10311@lists.php.net to get a copy of this message | ||
Hi,
can somebody tell me how I can read the session-id and what server
configuration is needed to do that ?
What I tried was:
serverconfiguration:
track_vars on
register_globals on
session.use_cookies enabled
php code:
session_start();
$sname=session_name(); (=PHPSESSID)
Version A:
$g_user["session_id"]=$HTTP_COOKIE_VARS[$sname];
Version b:
$g_user["session_id"]=$$sname;
Thank you very much !