Expansion of Apache definitions

From: Date: Thu, 10 Jan 2013 18:25:09 +0000
Subject: Expansion of Apache definitions
Groups: php.general 
Request: Send a blank email to php-general+get-320063@lists.php.net to get a copy of this message
I recently made a posting on the Apache users group regarding recovering the client IP address using the $_SESSION['REMOTE_ADDR'] function in PHP. I received the following caveat from another developer: -------------start quote-------------------- You may want to update that. Since 2.4, apache makes the distinction between the the two different REMOTE_ADDR candidates: the peer making the TCP connection, and the client making the HTTP request. In other words, the nearest proxy and the end-user. The latter is of course very easy to spoof, but is nevertheless the one most applications want. --------------end quote-------------------- Is there any development underway in PHP to have both of these addresses available in the $_SESSION global variable? Regards, John

« previous php.general (#320063) next »