Hello all,
I'm working on a custom cms project and stumbled across ckfinder the other day. Despite my limited php exposure I've actually had a pretty easy time getting things going on my server. That is, until I tried to configure access control using session variables.
For testing purposes or at least until I fully grasp the concept, I'm using the standalone sample php page.
I start said page off with:
Back in the config doc, I've uncommented the session_start() call and have the access control attributes set up like this:
When I load up the page on the server, I'm getting the ckfinder layout but no files or folders.
If I change the role attibute back to "*" I see everything, but then again so will everyone else.
What am I doing wrong? Pulling what little hair I have left out at this point, any input would be very welcome
I'm working on a custom cms project and stumbled across ckfinder the other day. Despite my limited php exposure I've actually had a pretty easy time getting things going on my server. That is, until I tried to configure access control using session variables.
For testing purposes or at least until I fully grasp the concept, I'm using the standalone sample php page.
I start said page off with:
<?php // Session Info session_start(); $_SESSION['CKFinder_UserRole'] = 'admin'; ?>
Back in the config doc, I've uncommented the session_start() call and have the access control attributes set up like this:
$config['RoleSessionVar'] = $_SESSION['CKFinder_UserRole']; session_start(); $config['AccessControl'][] = Array( 'role' => 'admin', 'resourceType' => '*', 'folder' => '/', 'folderView' => true, 'folderCreate' => true, 'folderRename' => true, 'folderDelete' => true, 'fileView' => true, 'fileUpload' => true, 'fileRename' => true, 'fileDelete' => true);
When I load up the page on the server, I'm getting the ckfinder layout but no files or folders.
If I change the role attibute back to "*" I see everything, but then again so will everyone else.
What am I doing wrong? Pulling what little hair I have left out at this point, any input would be very welcome