If you are getting logged out repetedly from WHM
Go to
Home /
Server Configuration /
Tweak Settings
From there in security section check on Cookie IP validation
By defaut its set to strict.
Enable loose option and save.
This should fix this issue