note 64755 added to ref.session
| From: | (at) | Date: | Thu, 20 Apr 2006 09:35:42 +0000 |
| Subject: | note 64755 added to ref.session | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-108780@lists.php.net to get a copy of this message | ||
WHY THE SERVER DOESN'T SEND A COOKIE?
i developed a cms wich uses sessions to preserve page and login data.
as i use the same system for several customers, a config.php file
is included at the beginning of the script.
unfortunately, the php-closer "?>" in the included file was on the
second-last row. my testserver ingnored it, while the empty row
forced the liveserver to send the header to the client, therefore
the session cookie could not be sneded anymore.
took me three (!) days to solve. i think it's worth sharing, isn't it?
yep, *sim
----
Server IP: 194.153.94.11
Probable Submitter: 212.254.197.3
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/ref.session.php
Edit -- http://master.php.net/note/edit/64755
Del: integrated -- http://master.php.net/note/delete/64755/integrated
Del: useless -- http://master.php.net/note/delete/64755/useless
Del: bad code -- http://master.php.net/note/delete/64755/bad+code
Del: spam -- http://master.php.net/note/delete/64755/spam
Del: non-english -- http://master.php.net/note/delete/64755/non-english
Del: in docs -- http://master.php.net/note/delete/64755/in+docs
Del: other reasons-- http://master.php.net/note/delete/64755
Reject -- http://master.php.net/note/reject/64755
Search -- http://master.php.net/manage/user-notes.php