<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://docs-old.ckeditor.com/index.php?action=history&amp;feed=atom&amp;title=CKFinder_2.x%2FDevelopers_Guide%2FColdFusion%2FConfiguration%2FSessions</id>
		<title>CKFinder 2.x/Developers Guide/ColdFusion/Configuration/Sessions - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://docs-old.ckeditor.com/index.php?action=history&amp;feed=atom&amp;title=CKFinder_2.x%2FDevelopers_Guide%2FColdFusion%2FConfiguration%2FSessions"/>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ColdFusion/Configuration/Sessions&amp;action=history"/>
		<updated>2026-05-04T19:32:08Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.1</generator>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ColdFusion/Configuration/Sessions&amp;diff=2977&amp;oldid=prev</id>
		<title>Wiktor: Created page with '== Enabling sessions ==  It is quite possible, that you'll use session variables in the configuration file (config.cfm), for example when setting up the [[CKFinder_2.x/Developers…'</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ColdFusion/Configuration/Sessions&amp;diff=2977&amp;oldid=prev"/>
				<updated>2010-05-14T19:21:43Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;== Enabling sessions ==  It is quite possible, that you&amp;#039;ll use session variables in the configuration file (config.cfm), for example when setting up the [[CKFinder_2.x/Developers…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Enabling sessions ==&lt;br /&gt;
&lt;br /&gt;
It is quite possible, that you'll use session variables in the configuration file (config.cfm), for example when setting up the [[CKFinder_2.x/Developers_Guide/ColdFusion/Configuration/Access_Control|Access Control]] or writing the [[CKFinder_2.x/Developers_Guide/ColdFusion/Configuration/Quick_Start|CheckAuthentication]] function. &lt;br /&gt;
&lt;br /&gt;
Please remember that you have to enable session management in your application before use of session variables becomes available.&lt;br /&gt;
&lt;br /&gt;
* In '''ColdFusion 6.1''', create the '''Application.cfm''' file and place it in the ckfinder folder:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;amp;lt;cfapplication&lt;br /&gt;
Name = &amp;quot;CKFinder_Connector&amp;quot;&lt;br /&gt;
SessionManagement = true&lt;br /&gt;
ApplicationTimeout = &amp;quot;#CreateTimeSpan( 0, 0, 5, 0 )#&amp;quot;&lt;br /&gt;
SessionTimeout = &amp;quot;#CreateTimeSpan(0,0,45,0)#&amp;quot;&lt;br /&gt;
SetClientCookies = true&lt;br /&gt;
&amp;amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
* If you are running '''ColdFusion 7''' (or later), create a similar '''Application.cfc''' file and place it in the ckfinder folder:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;amp;lt;cfcomponent displayname=&amp;quot;Application&amp;quot; output=&amp;quot;false&amp;quot; hint=&amp;quot;Pre-page processing for the application&amp;quot;&amp;amp;gt;&lt;br /&gt;
&amp;amp;lt;cfscript&amp;amp;gt;&lt;br /&gt;
THIS.Name = &amp;quot;CKFinder_Connector&amp;quot;;&lt;br /&gt;
THIS.ApplicationTimeout = &amp;quot;#CreateTimeSpan( 0, 0, 5, 0 )#&amp;quot;;&lt;br /&gt;
THIS.SessionTimeout = &amp;quot;#CreateTimeSpan(0,0,45,0)#&amp;quot;;&lt;br /&gt;
THIS.SessionManagement = true;&lt;br /&gt;
THIS.SetClientCookies = true;&lt;br /&gt;
&amp;amp;lt;/cfscript&amp;amp;gt;&lt;br /&gt;
&amp;amp;lt;/cfcomponent&amp;amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Because each Application has its own unique session scope, you will probably have to modify the name of the application in the initialization files. Open:&lt;br /&gt;
* &amp;lt;code&amp;gt;ckfinder/Application.cfc&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;ckfinder/core/connector/cfm/Application.cfc&amp;lt;/code&amp;gt;&lt;br /&gt;
and adjust &amp;lt;code&amp;gt;THIS.Name&amp;lt;/code&amp;gt; variable, you should use the same name that your main application uses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After you have enabled session variables using &amp;lt;code&amp;gt;sessionManagement&amp;lt;/code&amp;gt;, you can start using them in your code (and in configuration file):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;cfset SESSION.CKFinder_UserRole = &amp;quot;admin&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: session variables can be disabled globally in the ColdFusion Administrator. In such case, you will not be able to use session variables, regardless of what you set the sessionManagement attribute to. &lt;br /&gt;
&lt;br /&gt;
More information about session handling can be found in the [http://livedocs.adobe.com/coldfusion/7/htmldocs/00001156.htm ColdFusion documentation].&lt;/div&gt;</summary>
		<author><name>Wiktor</name></author>	</entry>

	</feed>