Re: [PHP4BETA] Hooray: QQ RE: [PHP4BETA] Docs for sessions?
| From: | Andrey Zmievski | Date: | Thu, 22 Jul 1999 15:13:26 +0000 |
| Subject: | Re: [PHP4BETA] Hooray: QQ RE: [PHP4BETA] Docs for sessions? | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-2530@lists.php.net to get a copy of this message | ||
Samuel Liddicott wrote:
> Q) Is it safe to session_register a variable twice? Or must we check
first?
> [http://129.142.82.11/session/function.session-is-registered.php3
> session_is_registered
> session_is_registered -- Checks wether a variable is registered as a
session
> object]
There is no harm in registering a variable twice.
> Q) Although I am using cookies (and it works) <?=sid;?> is still outputting
> the session info.
> Is this right? How can I tell if the session id is coming from a cookie?
> Is there an easy way or is the easy way to check the COOKIES[] array for
the
> session name I am interested in?
You can check HTTP_COOKIE_VARS array for PHPSESSID or whatever else
session.name defines.
-Andrey
* Entropy isn't what it used to be. *