Fix PHP Sessions issue of WHMCS with Cloudflare

PHP Sessions of WHMCS may not work when you are using Cloudflare on your domain name. So, here's the permanent solution:

Solving the problem from Cloudflare:

  1. Log into your Cloudflare account.
  2. Select the domain name.
  3. Go to the firewall option and set it to "Low".
  4. It should be solved now!

Note: It is not recommended to set the firewall as low, since your website may get down if anyone attacks your website with DOS/DDoS.

Solving the problem from WHMCS:

  1. Log into your WHMCS admin dashboard.
  2. Go to System Settings » General Settings » Security tab.
  3. Check "Disable Session IP Check" and save the changes.
  4. Now, visit Cloudflare CIDR IPs and add them to Trusted Proxies.
  5. No need to input X_FORWARDED_FOR in Proxy IP Header.
  6. Again, uncheck "Disable Session IP Check" and save the changes.
  7. It's done! You won't have the issue from now!
  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

How to add domains to whmcs without registration

To add a domain without a product and bill and without registration or transfer, follow the steps...

How to fix WHMCS Domain Checker not Working

You can do one of the following ways and check. Change Template. In most case changing...

Security Questions Samples for WHMCS Install?

List of security Good questions In what county were you born? What was your childhood...

How to install and set custom WHMCS template?

1) Download the template package and extract it to your PC. 2) Open the folder called “WHMCS PHP...

Connect Boxbilling with WHM & create accounts

Boxbilling is one of the popular free webhost billing software. Download Boxbilling webhost...