Viewing Issue Simple Details |
ID |
Category |
Type |
Reproducibility |
Date Submitted |
Last Update |
0000993 |
[In-Portal CMS] Data Management |
bug report |
always |
2011-02-05 08:26 |
2011-09-19 16:09 |
|
Reporter |
alex |
View Status |
public |
|
Assigned To |
alex |
Priority |
normal |
Resolution |
fixed |
|
Status |
closed |
|
|
|
|
Summary |
0000993: Unable to login to Admin Console, when web-server is installed on non-default port |
Description |
I have In-Portal installation on 8080 port instead of 80 port, which is default.
Because of that I have to specify port each time I visit website like this: http://www.site-name.com:8080/admin/
Unfortunate effect of that is that $_SERVER['HTTP_HOST'] variable also contains that port, but since it's used for cookie setting no cookies are set at the end.
I propose to strip value of PORT constant from end of SERVER_NAME constant (which is set to $_SERVER['HTTP_HOST'] by default). It's also safe for IPv6 protocol. |
Additional Information |
Unfortunate side effect is inability to login to Admin Console, since it's uses cookie-based session.
Also today $_SERVER['HTTP_PORT'] variable is no longer provided to PHP (tested on Apache 1.3, Apache 2.2, PHP 4.4, PHP 5.2.1) and it's being replaced by $_SERVER['SERVER_PORT'] in attached patches. |