‘Your login session has expired’ in cPanel – What causes this error?
Website owners usually experience this error when they use multiple connections to access the account within a specific timeframe or when they use a VPN or proxy that often changes the IP.
Now, let’s see why cPanel kicks users out with the error message “Your login session has expired“.
cPanel uses the “Cookie IP validation” security feature. This compares the visitor’s current IP address to their IP addresses for subsequent requests.
And, most hosting providers set this value to strict. So, the current IP address and the IP addresses on subsequent requests should match. Otherwise, cPanel kicks you out and shows the error “Your login session has expired“.
‘Your login session has expired’ in cPanel – How to fix?
In most cases, a re-login to cPanel or login attempt from an alternate browser works fine. But, to fix this permanently, we must ensure that the IP remains static all the time.
Now, let’s see how our Support Engineers permanently resolve this problem.
1) Get a static IP address
Some network providers or ISPs constantly change their IP address. As a result, cPanel identifies the session as invalid and kicks out the user.
Here, our Support Engineers suggest the customers to contact ISPs and obtain a static IP address, so that the connection IP doesn’t change.
Alternatively, we suggest customers to use VPNs that stabilize the IP, and more likely act as a static IP address that doesn’t change frequently.
2) Tweak Cookie IP Validation settings
Likewise in VPS or Dedicated servers, we suggest sever owners to tweak the Cookie IP Validation settings.
As we discussed, most web hosts set this parameter to strict, which causes frequent problems.
In such cases, we change the Cookie IP Validation to Loose, which checks whether the session IP and IP of subsequent requests belong to same range.

Cookie IP Validation in cPanel
We do it from Tweak Settings option in WHM. Additionally, our Support Engineers disable Proxydomains to ensure maximum effectiveness of this option.
3) Use static cPanel login link
For customers who use CDN services, they connect from their own network of servers. So each request can come from different IP addresses.
So, our Support Engineers recommend to access cPanel using a URL that doesn’t proxy through CDN.
In other words, we suggest customers to use proxy subdomain “https://cpanel.domain.com” to access cPanel, and point DNS directly to the cPanel server. Most importantly, we ensure that this sub domain is excluded from CDN inorder to bypass the CDN rules.
Alternatively, we recommend website owners use static URL like https://server_name:2083 to access cPanel. Here server_nameis the cPanel server name and 2083 is the cPanel port.