note 49924 added to reserved.variables
| From: | magotes | Date: | Sat, 12 Feb 2005 03:09:59 +0000 |
| Subject: | note 49924 added to reserved.variables | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-84889@lists.php.net to get a copy of this message | ||
Sorry if this is old news to some, but it might not be obvious at a first glance:
If you are using $_SERVER['remote_addr'] as a way to keep track of a logged-in user (this
can be useful to avoid several types of hacking), remember that it might not be the user's
actual IP address!
I was trying to implement a login feature that used this, storing the IP into a DB. It went smoothly
while on a LAN, but wrecked havoc when accepting outter connections.
----
Manual Page -- http://www.php.net/manual/en/reserved.variables.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+49924
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49924&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49924&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49924&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49924&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49924&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+49924&report=yes
Search -- http://master.php.net/manage/user-notes.php