I am trying to use a session variable of a logged in user (session.user.username) to defined the location of the image, flash and doc files. I keep getting an error that states session.user is undefined. What am I missing? I can confirm that I am logged in elsewhere, but it's not being processed in the CKFinder folder.
config.baseUrl = "/assets/users/#session.user.username#/";
Thanks.
Phil
config.baseUrl = "/assets/users/#session.user.username#/";
Thanks.
Phil
Re: ColdFusion Config File Wont Recognize a session variable.
Make sure that you have created the Application.cfc file in the CKFinder directory:
Because each Application has its own unique session scope, you will probably have to modify name of the application.
Open:
and adjust THIS.Name variable, you should use the same name that your main application uses.
I have modified the documentation so that setting up CKFinder was easier, please take a look at: http://docs.fckeditor.net/CKFinder/Deve ... figuration
If you still have any questions or would like to suggest improvements in documentation, feel free to post your comments here.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+