RE: [PHP] easy one
| From: | Johnson, Kirk | Date: | Tue, 15 May 2001 22:02:36 +0000 |
| Subject: | RE: [PHP] easy one | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-52942@lists.php.net to get a copy of this message | ||
Just to add a couple details. On the first page request, PHP sets the
constant SID as well as the cookie. If the user has cookies disabled, then
SID is also set on all following page requests. If cookies are enabled, then
the cookie PHPSESSID (if you stick with the default name) exists on all
following page requests.
Kirk
> -----Original Message-----
> From: Adaran (Marc E. Brinkmann) [mailto:vielmailer@adaran.net]
> Sent: Tuesday, May 15, 2001 7:52 AM
> To: Php-General
> Cc: Php-General
> Subject: Re: [PHP] easy one
>
>
> Hi Romulo,
>
> Romulo> Hello!
> Romulo> How do I check if a session exist before I call
> session_start()?
>
> check if the Cookie PHPSESSID has been set!
>
> -----------------------
> EnjoY,
> Adaran (vielmailer@adaran.net)
> check http://www.adaran.net