RE: [PHP] easy one

2001-05-15 Thread Johnson, Kirk

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]




RE: [PHP] Easy one

2001-05-09 Thread Jason Murray

 Is there a function to check of the existance of character x in 
 string y which returns true or false only?

Yes, strstr().

Jason

-- 
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]