[#session.sessionId#-#session.URLToken#]
onsessionEnd I do:
cffile action=append file=#ExpandPath(/)#lablog.txt addnewline=true
output=This is the onsessionEnd handler firing
[#arguments.sessionscope.sessionId#-#arguments.sessionscope.URLToken#]
(The sessionScope and ApplictionScope are arguments passed
? onSessionEnd() will not fire if the
application ends before the session does.
~Brad
Original Message
Subject: onSessionEnd not firing
From: marc -- m...@marcbakker.com
Date: Wed, February 17, 2010 4:13 pm
To: cf-talk cf-talk@houseoffusion.com
=#ExpandPath(/)#lablog.txt addnewline=true
output=This is the onsessionEnd handler firing
[#arguments.sessionscope.sessionId#-#arguments.sessionscope.URLToken#]
(The sessionScope and ApplictionScope are arguments passed to the
onSessionEnd function)
Well, you're never going to see any output from
I had the same issue when I was learning onSessionEnd()
Make sure to log your exceptions onError in case the onSessionEnd is throwing
an error.
~|
Want to reach the ColdFusion community with something they want? Let them
Why are the values for cookies the same as before? I thought expired
cookies don't get sent by the browser anymore. But maybe I am mistaken and
the CF server checks if cookies are expired?
If I remember correctly, the jSessionID/CFID/CFToken values are associated
with the browser instance,
Okay I figured it out.
cfcomponent
cfset THIS.Name = SessionOnlyCookiesTest /
cfset THIS.ApplicationTimeout = CreateTimeSpan( 0, 0, 1, 0 ) /
cfset THIS.SessionManagement = true /
cfset THIS.SessionTimeout = CreateTimeSpan( 0, 0, 0, 10 ) /
cfset THIS.SetClientCookies =
So I can make the application work and manually clean up sessions but if the
user leaves the page and their session is left to expire, the onsessionend
never fires.
I guess I need to make a case locally. I will follow up on this in case someone
else is having this same issue.
This is the first time I have tried to work with sessions and so far everything
seems to be working fine except the OnSessionEnd function is not working. I
have tried everything to get it to fire. It simply does not run at all.
cfcomponent output=false
cfset THIS.Name =
What have you done to try and get it to fire?
This method will not get run until the sesion actually times out based on
the session timeout value set in either CF admin or in your code.
On Thu, Mar 26, 2009 at 3:14 PM, Tony Bentley t...@tonybentley.com wrote:
This is the first time I have
Did you check your logs to ensure onSessionEnd wasn't throwing an error?
On Thu, Mar 26, 2009 at 2:14 PM, Tony Bentley t...@tonybentley.com wrote:
This is the first time I have tried to work with sessions and so far
everything seems to be working fine except the OnSessionEnd function is not
I do not have access to the CFlog files (that I know of).
I read some entries of using onError() so I can log any event inside of the cfc
with cffile.
I have tried a couple of tests using onRequest firing the onSessionEnd and I am
getting the following:
OnError : [Event handler exception
This seems to work fine:
cffunction
name=OnSessionStart
access=public
returntype=void
hint=Fires when user session initializes .
cfcookie name=CFID value=#SESSION.CFID# /
cfcookie name=CFTOKEN value=#SESSION.CFTOKEN# /
cfset SESSION.DateInitialized =
...@tonybentley.com wrote:
I do not have access to the CFlog files (that I know of).
I read some entries of using onError() so I can log any event inside of the
cfc with cffile.
I have tried a couple of tests using onRequest firing the onSessionEnd and
I am getting the following:
OnError : [Event
Would it be outside the realm of possibility for you to try running the code
locally? you might want to think about installing CF developer edition (its
FREE) locally and then when you are ready, you can push the code to the
server.
On Thu, Mar 26, 2009 at 4:42 PM, Tony Bentley
Does this error happen when you call it manually from OnRequest() or
when you let the session expire?
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/
2009/3/27 Tony Bentley t...@tonybentley.com:
Also, based on my testing the error is a result of not having
Manually. If I let the session expire, it will not fire at all.
Here is what I am trying to do:
I want someone to create an experience unique for each user. Sounds simple. Now
lets add the fact that my page does not refresh ever (unless they leave and
come back but that isn't technically a
The session won't be passed in to the method if you fire it manually
with cfset OnSessionEnd() so you are getting the error you'd expect.
You realize that each Ajax request is keeping the session alive, so it
never times out, right?
mxAjax / CFAjax docs and other useful articles:
Hey all,
I'm messing around with Application.cfc and trying to set up a logging
routine that fires on onSessionEnd.
Trouble is that it seems onSessionEnd doesn't fire when the session ends -
or rather, the session doesn't end when it has supposedly timed out, so
onSessionEnd doesn't fire.
I
So, if the session doesn't effectively end when it times out, can I use
onSessionEnd to do what I want to do, or is there another way? Or am I
missing something obvious?
-- Josh
What are you doing when the session ends? I've not done much with these
events, but when I played with it, I
]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Tuesday, February 20, 2007 2:48 PM
Subject: RE: App.cfc onSessionEnd not firing when session times out?
So, if the session doesn't effectively end when it times out, can I use
onSessionEnd to do what I want to do, or is there another way? Or am I
20 matches
Mail list logo