ckfinder

Codeigniter 3.x, Ion-auth, CKFinder - how to pass the logged in status from ion-auth to CKFinder's config file

和自甴很熟 提交于 2019-11-27 07:25:58
问题 How do I pass the logged in status from ion-auth/codeigniter to CKFinder's config file? In CKfinder, there is a config file for authentication as follows: $config['authentication'] = function () { return false; }; In codeigniter I am using ion-auth. In the Auth controller in the login() method, I added this if the user is successfully logged in: $_SESSION['userloggedin']; The $_SESSION['userloggedin'] does get set as when I echo to screen, I get "1" but that echo is in the login() method. I