Whmcs AUTO LOGOUT CloudFlare
HOW TO FIX AUTO LOGOUT ISSUE IN WHMCS - Can't stay logged into admin area
After activating Cloudflare WHMCS login not working - whmcs logout issue with cloudflare
Session drop / kick out / logout problem - Cloudflare - Cloudflare causing logout
WHMCS PHP Sessions Not working



:

cloud flare whmcs
log out
clients home

, ip
allow

After checking the WHMCS admin log i noticed i was logging in from Cloudflare ips
and every time the ip changed, i got logout.

" log out " ip :

Being logged out is an indication of the IP address changing
which would cause you to be logged out due to the Session IP Check


Setup -> General settings -> Security tab -> disable IP session
Disable Session IP Check
login
, 2factor

" log out " cloudflare ip :

session ip
whmcs logout


when clients are using Cloudflare, which is easy identifiable by reviewing the System Admin Login Log,
where you will see Cloudflare IP address listed. If that is the case,
you will want to add Cloudflare IP addresses to your Trusted Proxies inside WHMCS.
+
The Proxy Header field allows you to configure the HTTP header WHMCS will use to figure out which IP address is the authoritative IP address for the request, in other words, your connecting IP address



Proxy IP Header

The Proxy Header field allows you to configure the HTTP header WHMCS will use to figure out which IP address is the authoritative IP address for the request.Most proxies use "X_FORWARDED_FOR" and so the field can be left blank. Only change this value if you are sure your proxy uses a different header, as putting the wrong header into this field can cause improper recording of IP addresses.


Setup -> General settings -> Security tab -> Proxy IP Header
X_FORWARDED_FOR

Trusted Proxies

Use this field to add and remove IP Addresses and IP Address CIDR ranges of trusted proxies.
WHMCS will check the header configured to discover the actual canonical request IP address.


Setup -> General settings -> Security tab ->Trusted Proxies
ip

:
173.245.48.0/20
103.21.244.0/22
103.22.200.0/22
103.31.4.0/22
141.101.64.0/18
108.162.192.0/18
190.93.240.0/20
188.114.96.0/20
197.234.240.0/22
198.41.128.0/17
162.158.0.0/15
104.16.0.0/12
172.64.0.0/13
131.0.72.0/22
:
Cloudflare Users
Some of Cloudflare's features are not compatible with WHMCS. Please ensure that both
Script Minimisation
and Rocket Loader are be disabled for the domain on which WHMCS is installed
.

:
https://docs.whmcs.com/Trusted_Proxy_Settings
https://whmcs.community/topic/290988...to-admin-area/
https://whmcs.community/topic/301522-logout-issue/
https://stackoverflow.com/questions/...ns-not-working
https://docs.whmcs.com/Security_Tab#...ssion_IP_Check
https://www.cloudflare.com/ips-v4