getServerURL bug in examples/server/lib/session.php

Bob Mroczka bob at mroczka.com
Thu Nov 15 18:09:41 PST 2007


The line:

$host = $_SERVER['HTTP_HOST'];

I believe needs to be changed to:

$host = $_SERVER['SERVER_NAME'];

HTTP_HOST may contain a port number which will cause the returning the URL to
have the port number doubled up.

Bob





More information about the Dev mailing list