note 36758 rejected from function.session-start by betz

From: Date: Thu, 18 Dec 2003 23:04:39 +0000
Subject: note 36758 rejected from function.session-start by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-62196@lists.php.net to get a copy of this message
Note Submitter: kjr-@t-freemail.hu ---- I use a Windows machine for development, Apache and PHP (in CGI mode). The same script that was working fine on Linux, failed to use PHPSESSID cookie. After many trials, I have noticed that if I send a cookie using header('Set-Cookie:'), PHPSESSID will not be sent by PHP. If I send my cookies using setcookie(), PHPSESSID cookie is sent. After all, this bug comes in the following situation: - PHP win32 CGI mode - other header('Set-Cookie:') commands in the initial page script Solution: use setcookie() or send PHPSESSID cookie yourself.

« previous php.notes (#62196) next »