Welcome Guest, Not a member yet? Register   Sign In
Session and match_ip ignore proxy
#1

(This post was last modified: 03-13-2017, 01:39 PM by gdhnz.)

Hi,

I've got some proxy IPs set in my config but I've found out if you set $config['sess_match_ip'] = true, then the Session library will not take into account the proxies and will always use $_SERVER['REMOTE_HOST'].

$this->input->ip_address() does take into account the proxy IPs and returns the correct client IP.

Any suggestions?
Reply


Messages In This Thread
Session and match_ip ignore proxy - by gdhnz - 03-13-2017, 01:39 PM
RE: Session and match_ip ignore proxy - by gdhnz - 03-13-2017, 02:59 PM
RE: Session and match_ip ignore proxy - by Narf - 03-13-2017, 03:23 PM
RE: Session and match_ip ignore proxy - by gdhnz - 03-13-2017, 03:29 PM
RE: Session and match_ip ignore proxy - by Narf - 03-14-2017, 03:00 AM
RE: Session and match_ip ignore proxy - by gdhnz - 03-13-2017, 04:18 PM
RE: Session and match_ip ignore proxy - by gdhnz - 03-14-2017, 12:14 PM
RE: Session and match_ip ignore proxy - by Narf - 03-15-2017, 03:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB