note 61198 rejected from function.getenv by nlopess

From: Date: Fri, 27 Jan 2006 23:32:39 +0000
Subject: note 61198 rejected from function.getenv by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-102589@lists.php.net to get a copy of this message
Note Submitter: kalmisoft at gmail dot com ---- /*Why can't it be as easy as this? Is something wrong with it?*/ $ipMix=$_SERVER['REMOTE_ADDR']. "a".$_SERVER['HTTP_X_FORWARDED_FOR']; if (!isset($_SESSION['ipMix'])) { $_SESSION['ipMix']=$ipMix; } else if($ipMix!=$_SESSION['ipMix']) { die("Security Warning"); }

« previous php.notes (#102589) next »