note 7994 added to session_id
| From: | triffid at hollymorphic dot com | Date: | Wed, 23 Aug 2000 18:49:50 +0000 |
| Subject: | note 7994 added to session_id | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-3029@lists.php.net to get a copy of this message | ||
In the session example above, the only difference between the original code and the new example is
that a link has been added passing the session id to the second script as part of its query string.
That will work fine, but so will the original code if
a. The user has enabled cookies in his/her browser
b. php has been configured to use cookies with sessions (on by default)
The use of a query string is advisable in a production environment, but not absolutely necessary in
a quick example.
http://www.php.net/manual/function.session-id.php