cPanel sessions and IP changes

sparek-3

Well-Known Member
Aug 10, 2002
2,035
228
368
cPanel Access Level
Root Administrator
Is there a way to clear a cPanel session on the server, so that users that get the Your IP address has changed. Please log in again can log into their cPanel (or webmail or WHM)?

Is there some where that ties the cpsessXXXXXXXX to a user's IP address that can be cleared?
 

SysSachin

Well-Known Member
Aug 23, 2015
604
48
28
India
cPanel Access Level
Root Administrator
Twitter
Hello,

You are using dynamic ISP IP and due to that you are facing such issue ot to avoid this issue you can disable "Validate the IP addresses used in all cookie based logins" in tweak settings under security in your whm.


Login to WHM: Main >> Server Configuration >> Tweak Settings >> Security.
 
Last edited:

sparek-3

Well-Known Member
Aug 10, 2002
2,035
228
368
cPanel Access Level
Root Administrator
Actually I would prefer not to disable this system-wide.

This issue only seems to affect 1 or 2 clients. 99% of the clients on a server are not affected by this.

Ultimately you may be right, the user's IP address may be changing too often for this to work. But the scenario I am seeing (or at least the best I can understand it from the client):

Client logs into cPanel, doesn't log out

Client's browser sits there for 30 minutes.

Client's IP address changes within that 30 minutes.

Client goes back into cPanel, clicks on something, and gets sent back to the login screen because their IP address doesn't match up with their session any more.

Client is unable to log back in because cPanel continues to try and use that same session which isn't tied to their IP address (at least this is what I'm given to understand is happening).
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Is there a way to clear a cPanel session on the server, so that users that get the Your IP address has changed. Please log in again can log into their cPanel (or webmail or WHM)?
Hello,

The session files are stored in the following directory:

/var/cpanel/sessions/raw/

If the username is "example123", then you could see a list of sessions with the following command:

Code:
ls /var/cpanel/sessions/raw/example123*
Thank you.