2

I am using whmcs for a long time but 2 days ago my licence was suspended due to unknown reason, now its unsuspended but i was unable to login, it shows "INVALID CSRF PROTECTION TOKEN". i have tried my best but not resolved .

Nadir Hussain
  • 21
  • 1
  • 3

2 Answers2

2

I realized this was related to another issue with sessions which I was having. That article states that the issue comes up for 1 of 2 reasons:

  • The configured session tmp path not being writeable
  • The configured session tmp path being full

After doing phpinfo(), I realised my session.save_path was pointing to a non-existent directory. Had to edit my php.ini and set its value to /tmp.

Issue fixed.

Cedric Ipkiss
  • 5,662
  • 2
  • 43
  • 72
  • 1
    It is very important to figure out the reason why it happened. Your answer is best suited and more reasonable. Thumbs up! – Prateek Jan 21 '22 at 14:08
  • I had the same issue but was discovered by the admin user never logs in, the admin page just refreshes and asks for credentials again. Thanks! – Rami Alloush Oct 18 '22 at 21:57
1

From WHMCS forum post, they suggest to disable Session IP Check.

Setup > General Settings > Security tab

Or from phpmyadmin, run this SQL statement:

UPDATE `tblconfiguration` SET `value` = 'on' WHERE `setting` = 'DisableSessionIPCheck'
wesamly
  • 1,484
  • 1
  • 16
  • 23