• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Codeigniter and cloudflare, problem with session?

#1
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.
Reply

#2
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.
Reply

#3
Ok, thanks Smile
Reply

#4
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/...ith-Apache

this solve my ip seesion issue and i get client original ip
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.