Are you facing an issue where WHMCS logs out by itself frequently? This problem can be frustrating, especially when you're in the middle of managing your web hosting services. Fortunately, there are effective solutions to resolve this issue. In this article, we'll explore two primary methods to fix the WHMCS auto logout problem, including settings for users using Cloudflare.
Quick link: Buy cheap WHMCS License
Solution 1: Configuring Trusted Proxies in WHMCS (For Cloudflare Users)
If you have a proxy, load-balancer, or WAF (Web Application Firewall) like NGINX or Cloudflare/Cloudfront in front of your web server, configuring Trusted Proxy settings in WHMCS can help. Here's how to do it:
-
Access WHMCS Configuration:
- Navigate to the Security tab at Configuration > System Settings > General Settings.
-
Set Up Trusted Proxies:
- Proxy IP Header: Configure the HTTP header to find the authoritative IP address for the request. Most proxies use
X_FORWARDED_FOR
. Change this value only if you are sure your proxy uses a different header. - Trusted Proxy List: Add and remove IP addresses and IP address CIDR ranges as trusted proxies. WHMCS will check the configured header to discover the actual canonical request IP address.
- Proxy IP Header: Configure the HTTP header to find the authoritative IP address for the request. Most proxies use
-
Cloudflare IP Ranges:
-
You can find the list of Cloudflare's IP ranges on their official page.
-
Add the following IP ranges to your trusted proxy list:
IPv4:
- 103.21.244.0/22
- 103.22.200.0/22
- 103.31.4.0/22
- 104.16.0.0/13
- 104.24.0.0/14
- 108.162.192.0/18
- 131.0.72.0/22
- 141.101.64.0/18
- 162.158.0.0/15
- 172.64.0.0/13
- 173.245.48.0/20
- 188.114.96.0/20
- 190.93.240.0/20
- 197.234.240.0/22
- 198.41.128.0/17
IPv6:
2400:cb00::/32
2606:4700::/32
2803:f800::/32
2405:b500::/32
2405:8100::/32
2a06:98c0::/29
2c0f:f248::/32
Solution 2: Disable IP Session Check in WHMCS
If you're not using a proxy or want a simpler solution, follow these steps to disable the IP session check:
-
Login to WHMCS:
- Access your WHMCS admin panel.
-
Go to Setup Section:
- Navigate to the Setup section from the main dashboard.
-
Access General Settings:
- Click on General Settings from the Setup menu.
-
Disable IP Session Check:
- Go to the Security tab.
- Find the option to disable IP session check. This prevents WHMCS from logging out users if their IP address changes during a session.
-
Save the Changes:
- Click Save to apply the changes.
By following the above methods, you can resolve the WHMCS auto logout issue effectively. Whether you are using Cloudflare or simply need to adjust session settings, these solutions should help you maintain a stable and uninterrupted experience with WHMCS.
Dealing with frequent logouts in WHMCS can disrupt your workflow and lead to frustration. By configuring trusted proxies or disabling the IP session check, you can fix the WHMCS logout issue efficiently. Make sure to follow the steps outlined in this guide to resolve the problem and ensure a smoother management experience. If you continue to face issues, consider reaching out to WHMCS support for further assistance.
Solution to:
- WHMCS logout issue,
- WHMCS auto logout fix
- WHMCS Cloudflare settings
- WHMCS trusted proxy
- WHMCS session settings