Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2003022

RE: [PHP] How can I detetct if session cookies are enabled? From: Johnson, Kirk (kjohnson <email protected>)
Date: 02/28/03

> Is there a way (PHP code if possible please) to verify
> if session
> cookies are enabled in the user's browser?

On the *second* request, check if $_COOKIES['PHPSESSID'] is set.

On the initial request, PHP sends the 'PHPSESSID' cookie as part of the
response. The browser then returns that cookie in its next request.

Kirk

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php