RE: [PHP] How can I detetct if session cookies are enabled?
| From: | Johnson, Kirk | Date: | Fri, 28 Feb 2003 18:26:19 +0000 |
| Subject: | RE: [PHP] How can I detetct if session cookies are enabled? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-137606@lists.php.net to get a copy of this message | ||
> 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