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:[EMAIL PROTECTED]]
> 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 ([EMAIL PROTECTED])
>    check http://www.adaran.net

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to