Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
jeby #1
Session Management in Application.cfc
I have always used an Application.cfm file for most of my webapps but I am
currently working on one that needed the functionality that the Application.cfc
method provides...
My question is do I enable session management the same was as I would in an
Application.cfm?
<cffuntion name="onApplicationStart">
<cfapplication sessionmanagement="yes">
</cffunction>
Thanks All!
Josh
jeby Guest
-
CF/Flex3 and session management
Does anyone know how to manage user access to CF components so that a person must be authenticated before running the CFComponent? Otherwise, if I... -
Session management in MX
We are going to move 2 applications from 2 separate 4.5 servers to 1 MX server and both applications use pretty much the same code for session... -
session management logout
I am trying to get some help with the cfheader expires, pragma and cache - control. As I understand, the meaning of these tags is to keep users... -
Session Management Logout...
Try changing the Expires header to an RFC 1123 date format. According to the RFC spec, it requires the following format: Thu, 01 Dec 1994 16:00:00... -
Session Management
Hello, We've reviewing the CGI::Session and Apache::Session modules, and both seem to do pretty much the same thing. Is one better then the other,... -
Fernis #2
Re: Session Management in Application.cfc
No, it's a bit different with application.cfc, something like this:
<cfcomponent>
<cfset This.name = "myApplication">
<cfset This.Sessionmanagement = TRUE>
<cfset This.Sessiontimeout="#createtimespan(0,0,30,0)#">
<cfset This.applicationtimeout="#createtimespan(4,0,0,0)# ">
<cffunction name="onApplicationStart">
....here goes any additional stuff you wish to execute when the app is first
started
</cffunction>
</cfcomponent>
--
The "this." scope is used within components (or functions), which keeps the
variable existing as long as the component exists (with application.cfc, all
the time), and the variables are accessible from outside the component too, by
prefixing the variable name with the instance name. That is, #this.name#
specified in application.cfc can be referenced elsewhere as #application.name#.
HTH. :-)
Fernis Guest



Reply With Quote

