Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
ajpowellatl #1
onSessionEnd problem
I have this UDF being called in the function onSessionEnd in my application.cfc
file:
<cffunction name="writeUserData" access="public" returntype="void"
hint="Writes Object Vars to Client based WDDX Packet">
<cfset tempStruct = StructNew()/>
<cfset tempStruct.userName = this.userName/>
<cfset tempStruct.groups = this.groups/>
<cfset tempStruct.address = this.address/>
<cfset tempStruct.phone = this.phone/>
<cfset tempStruct.cellPhone = this.cellPhone/>
<cfset tempStruct.email = this.email/>
<cfset tempStruct.department = this.department/>
<cfset tempStruct.extension = this.extension/>
<cfwddx action="cfml2wddx" input="#tempStruct#" output="client.userObj" />
</cffunction>
However, it is not firing. All the appropriate settings are set in the this
scope within the application.cfc file. Any help as to why this isn't firing
would be helpful. I have a feeling that you cannot write to the client scope
as you are closing a session. Am I right or wrong on this?
Thanks!
Andy
ajpowellatl Guest
-
Preventing OnSessionEnd from firing for each instancein a cluster.
Hi, I have a clustered setup of three computers each with a cf server instance configured in a round-robin cluster with J2EE session variables... -
onSessionEnd Not Firing
I'm having a problem getting onSessionEnd to run when the session times out. I copied the code off of the CF doc pages and it doesn't create the log... -
OnSessionEnd
I am programming an application, and I would like to file in a database the exact time at which a visitor arrived to a certain page and then shut... -
onSessionEnd()
I am currently programming an app and would like to make it so that if the user leaves the browser open and their session times out, it will kick... -
Problem with Apache Web Server config file and PHP (please give advice on what problem may be me)
HI: Can anyone refer me to someone that can help with the problem below. I installed Apache Web Server on my laptop which has Windows XP. I... -
-
Stressed_Simon #3
Re: onSessionEnd problem
You have to call the File Application.cfm calling it application.cfc will do nothing unless you call it via cfinvoke, cfobject or CreateObject.
Stressed_Simon Guest
-
ajpowellatl #4
Re: onSessionEnd problem
Simon, this is CFMX 7. Application.cfc can be used in place of application.cfm.
ajpowellatl Guest
-
altimage #5
Re: onSessionEnd problem
i think you're right about the client scope. While we haven't specifically
tried writing to the client scope, we have tried to write/read from other
scopes that are unavailable to a dying session and they all failed. like URL
and a lot of CGI vars. So I'm not surprised CLIENT falls into that category.
altImage
altimage Guest
-
ajpowellatl #6
Re: onSessionEnd problem
I can understand URL and CGI variables dying, b/c they depend on the browser.
Client vars depend on session variables (clientid, etc.), so you would think
they'd be able to be set client vars in a method triggered from onSessionEnd.
It's just a bit frustrating. Oh well, add it to the wish list.
ajpowellatl Guest
-
Tom Jordahl #7
Re: onSessionEnd problem
That is correct, we do not set up the client scope.
There is no request. What happens, for instance, if you are storing your
client variables in cookies?
--
Tom Jordahl
Macromedia Server Development
Tom Jordahl Guest



Reply With Quote

