aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_session.inc.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/functions_session.inc.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/functions_session.inc.php b/include/functions_session.inc.php
index f0804efed..6d0f12a9b 100644
--- a/include/functions_session.inc.php
+++ b/include/functions_session.inc.php
@@ -99,12 +99,8 @@ function get_remote_addr_session_hash()
: '.'
;
- return vsprintf(
- "%02X%02X",
- explode($separator,$_SERVER['REMOTE_ADDR'])
- );
+ return substr(md5($_SERVER['REMOTE_ADDR']), 0, 4);
}
-
/**
* this function returns
* a string corresponding to the value of the variable save in the session