RE: [PHP] no session id
| From: | John W. Holmes | Date: | Wed, 26 Feb 2003 01:18:22 +0000 |
| Subject: | RE: [PHP] no session id | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-137171@lists.php.net to get a copy of this message | ||
> this code doesn't ouput a session-id.
> is the code right? and if not, any suggestions what's wrong?
> i'm new into sessions, so forgive me for stupid questions..
> thanx
> michiel
>
>
> <?
> session_start ();
> Header("Content-Type: text/html");
> echo "session id: " . $session_id;
> ?>
Where do you think $session_id is coming from? If you want to get the
current session id, use the session_id() function.
scho "session id: " . session_id();
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/