Codeigniter and cloudflare, problem with session? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Codeigniter and cloudflare, problem with session? (/showthread.php?tid=63021) |
Codeigniter and cloudflare, problem with session? - StratoKyke - 09-17-2015 When I active cloudflare in my site the sessions save the ip of cloudflare's server. I add the ip in proxy ip in the config to get the correct ip sessions? This is the list https://www.cloudflare.com/ips Thanks for the reply. RE: Codeigniter and cloudflare, problem with session? - Narf - 09-17-2015 No, CI_Session will ignore the proxy_ips setting and that's on purpose. Just don't use sess_match_ip; it is made mostly for intranet environments. RE: Codeigniter and cloudflare, problem with session? - StratoKyke - 09-17-2015 Ok, thanks RE: Codeigniter and cloudflare, problem with session? - asif92.rp - 09-04-2019 This is not the right way to do. Define trusted CF proxy IPs in virtual host configuration. No need to change in CI config Ref link: https://support.cloudflare.com/hc/en-us/articles/360029696071-Restoring-original-visitor-IPs-Option-2-Installing-mod-remoteip-with-Apache this solve my ip seesion issue and i get client original ip |