onSessionEnd not firing

2010-02-17 Thread marc --
[#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

RE: onSessionEnd not firing

2010-02-17 Thread brad
? 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

Re: onSessionEnd not firing

2010-02-17 Thread Dave Watts
=#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

Re: onSessionEnd not firing

2010-02-17 Thread Tony Bentley
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

Re: onSessionEnd not firing

2010-02-17 Thread Qing Xia
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,

Re: OnSessionEnd Not Firing

2009-03-28 Thread Tony Bentley
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 =

Re: OnSessionEnd Not Firing

2009-03-27 Thread Tony Bentley
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.

OnSessionEnd Not Firing

2009-03-26 Thread Tony Bentley
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 =

Re: OnSessionEnd Not Firing

2009-03-26 Thread Scott Stroz
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

Re: OnSessionEnd Not Firing

2009-03-26 Thread Raymond Camden
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

Re: OnSessionEnd Not Firing

2009-03-26 Thread Tony Bentley
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

Re: OnSessionEnd Not Firing

2009-03-26 Thread Tony Bentley
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 =

Re: OnSessionEnd Not Firing

2009-03-26 Thread Scott Stroz
...@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

Re: OnSessionEnd Not Firing

2009-03-26 Thread Tony Bentley
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

Re: OnSessionEnd Not Firing

2009-03-26 Thread James Holmes
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

Re: OnSessionEnd Not Firing

2009-03-26 Thread Tony Bentley
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

Re: OnSessionEnd Not Firing

2009-03-26 Thread James Holmes
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:

App.cfc onSessionEnd not firing when session times out?

2007-02-20 Thread Josh Nathanson
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

RE: App.cfc onSessionEnd not firing when session times out?

2007-02-20 Thread Ian Skinner
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

Re: App.cfc onSessionEnd not firing when session times out?

2007-02-20 Thread Josh Nathanson
] 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