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

Our web setup uses docker containers behind some proxies. What I see when I use match_ip for sessions is the ip address of the proxies.

All I've done is copy the system/libraries/Sessions/drivers/Session_redis_driver.php file to application/libraries/Sessions/drivers/MY_Session_redis_driver.php and just overrode the methods that used $_SERVER['REMOTE_ADDR'].

According to the documentation, this how you override core files.
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