summaryrefslogtreecommitdiff
path: root/includes/sys_auth.php
diff options
context:
space:
mode:
authorJan-Philipp Litza <janphilipp@litza.de>2012-12-27 14:25:33 +0100
committerJan-Philipp Litza <janphilipp@litza.de>2012-12-27 14:25:48 +0100
commit35202cc525c903a08e3cc466c9845ba1fd585617 (patch)
treed48d018eae8240f4ae81a6b762028af11f2667ef /includes/sys_auth.php
parent5a7a32d5593413640cf42ebe671d30a08d515882 (diff)
allow IP address change while being logged in
Diffstat (limited to 'includes/sys_auth.php')
-rw-r--r--includes/sys_auth.php9
1 files changed, 0 insertions, 9 deletions
diff --git a/includes/sys_auth.php b/includes/sys_auth.php
index 68cf17e4..4ca56632 100644
--- a/includes/sys_auth.php
+++ b/includes/sys_auth.php
@@ -5,15 +5,6 @@
function load_auth() {
global $user, $privileges;
- if (!isset ($_SESSION['IP']))
- $_SESSION['IP'] = $_SERVER['REMOTE_ADDR'];
-
- if ($_SESSION['IP'] != $_SERVER['REMOTE_ADDR']) {
- session_destroy();
- error("Your session has been destroyed because your ip-address changed.");
- header("Location: " . page_link_to('start'));
- }
-
$user = null;
if (isset ($_SESSION['uid'])) {
$user = sql_select("SELECT * FROM `User` WHERE `UID`=" . sql_escape($_SESSION['uid']) . " LIMIT 1");