Difference between revisions of "Template:CKFinder 2.x Sessions"

This website contains links to software which is either no longer maintained or will be supported only until the end of 2019 (CKFinder 2). For the latest documentation about current CKSource projects, including software like CKEditor 4/CKEditor 5, CKFinder 3, Cloud Services, Letters, Accessibility Checker, please visit the new documentation website.

If you look for an information about very old versions of CKEditor, FCKeditor and CKFinder check also the CKEditor forum, which was closed in 2015. If not, please head to StackOverflow for support.

(Note formatting removed as it blocks var replacement)
(Sessions: Note to be displayed in PHP or CF only)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
== Sessions ==
 
== Sessions ==
The <code>roleSessionVar</code> is a session variable name that CKFinder must use to retrieve the role of the current user.
+
The <code>{{{roleSessionVar}}}</code> is a session variable name that CKFinder must use to retrieve the role of the current user.
 
{{{code1}}}
 
{{{code1}}}
  
Line 6: Line 6:
 
{{{code2}}}
 
{{{code2}}}
  
For more information about using session variables refer to the [[CKFinder_2.x/Developers_Guide/{{{lang}}}/Configuration/Sessions|Sessions]] article.
+
{{ #ifeq: {{{lang}}} | PHP | For more information about using session variables refer to the [[CKFinder_2.x/Developers_Guide/{{{lang}}}/Configuration/Sessions|Sessions]] article.}}{{ #ifeq: {{{lang}}} | ColdFusion | For more information about using session variables refer to the [[CKFinder_2.x/Developers_Guide/{{{lang}}}/Configuration/Sessions|Sessions]] article.}}
  
 
=== Example 3 ===
 
=== Example 3 ===

Latest revision as of 11:05, 31 March 2011

Sessions

The {{{roleSessionVar}}} is a session variable name that CKFinder must use to retrieve the role of the current user. {{{code1}}}

To switch between different user roles, change the session variable: {{{code2}}}


Example 3

In your {{{file}}} file you can create three different roles.

First role is assigned to every user (wildcard * is used): {{{code3}}}

Second role defines a registered user: {{{code4}}}

Third role defines the administrator: {{{code5}}}

With the above settings you have created three different user permission sets. The default user (everybody) is allowed to browse all files and folders. A registered user also has the ability to upload files and create folders. The administrator is granted full permissions.

Now suppose you have an authentication mechanism somewhere in your Web application.

This page was last edited on 31 March 2011, at 11:05.