note 36758 added to function.session-start

From: Date: Tue, 21 Oct 2003 15:31:23 +0000
Subject: note 36758 added to function.session-start
Groups: php.notes 
Request: Send a blank email to php-notes+get-59042@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/function.session-start.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+36758 Delete -- http://master.php.net/manage/user-notes.php?action=delete+36758&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+36758&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#59042) next »