0

How to insert CakePHP5 session into ckfinder config file? Are there any restrictions? The problem is that within the ckfinder config file I cannot retrieve the global session variable.

I tried the following code but it doesn't work:

if (!empty($_SESSION['Auth']['AdminUser'])) {
    return true;
} else {
    return false;
}
2
  • 1
    "it doesn't work" - what does that mean? And how is this problem related to CakePHP? Commented May 28, 2024 at 8:11
  • I expect this would very much depend on the order in which files are loaded. Commented May 28, 2024 at 13:41

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.