note 11912 added to ref.session.php

From: Date: Tue, 13 Mar 2001 11:19:27 +0000
Subject: note 11912 added to ref.session.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-12330@lists.php.net to get a copy of this message
php 4.0.4 pl1 does not correctly encode the & as & when trans-sid is enabled. this is rather annoying because this is simply invalid html. it does work only because browser are used to all kinds of wrong code, but that´s not the problem. ie. php writes url.php4?some=arg&PHPSESSID=xxxx where url.php4?some=arg&PHPSESSID=xxxx would be correct. & is a special xml/html char and must always be encoded in a valid html document. if you care about this (i do) you have to write the url yourself, at least in this version of php. http://www.php.net/manual/en/ref.session.php

« previous php.notes (#12330) next »