I have ckfinder integrated with my php admin for a site that I am building. As default, it allows all to access the html upload page. I tried following the docs for the authentication in the config.php file but when I check for an existing session or cookie it returns an error. What am I missing?
Read the docs and tried to follow the instructions.
$config['authentication'] = function() {
if(isset($_COOKIE['cookie_admin']) || $_SESSION['session_admin']){
return true;
} else {
return false;
}
};
I need to block users that are not logged in from using that page.