To disable DirectAdmin session checks, create a touch file called /var/lib/csf/csf.da.skip
Create the file as above, the problem is solved.
Search found 3 matches
- 22 Sep 2020, 22:26
- Forum: General Discussion (csf)
- Topic: Get error API DirectAdmin : Security Error: No valid session key
- Replies: 9
- Views: 14047
- 07 Aug 2020, 11:06
- Forum: General Discussion (csf)
- Topic: Get error API DirectAdmin : Security Error: No valid session key
- Replies: 9
- Views: 14047
Re: Get error API DirectAdmin : Security Error: No valid session key
I changed the lines as below. File: /usr/local/directadmin/plugins/csf/exec/da_csf.cgi if (($session{key} eq "") or ($session{ip} eq "") or ($session{ip} ne $ENV{REMOTE_ADDR}) or ($session{key} ne $ENV{SESSION_KEY})) { &loginfail("Security Error: No valid session key&quo...
- 15 Jul 2020, 12:15
- Forum: General Discussion (csf)
- Topic: Get error API DirectAdmin : Security Error: No valid session key
- Replies: 9
- Views: 14047
Re: Get error API DirectAdmin : Security Error: No valid session key
Yes, I had the same problem, when we connect with the API, it cannot see the session. I also fixed the problem in the same way, but when the update comes, it may still be broken. It is not a definitive solution. Who needs to communicate this situation in order to avoid this problem again when the up...