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: http://www.bifrost.com.au/blog/ 2009/3/27 Tony Bentley <[email protected]>: > > 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 refresh). All requests are through > ajax/cfc. > > So now I must rely on a timed event (ajax request specific to ending their > session) using setinterval(). When their session expires I want to remove the > experience and redirect them. > > So far everything is cool except that I am not able to use onsessionend() > which limits how I clean it all up after the session is over. Not having this > makes this impossible. > >> 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/ > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321027 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

