FYI, blog entry on the work so far: http://www.coldfusionjedi.com/index.cfm/2010/9/8/Example-of-handling-session-time-outs-in-an-Ajax-application
On Wed, Sep 8, 2010 at 12:16 PM, Raymond Camden <rcam...@gmail.com> wrote: > Hmm. Good followup! > > So I'd say you would a) want to handle the issue for sure, but b) > probably not tell the user too much. > > So assuming that you normally have an error handler that say something > vague (or maybe it shows the full error, whatever, point is, you > handle it), we need a version for Ajax too. > > Correct? (I think I just restated what you said - but want to ensure > we are on the same page. > > > On Wed, Sep 8, 2010 at 12:04 PM, Tony Bentley > <cascadefreehee...@gmail.com> wrote: >> >> That's exactly what I was looking for Ray. So the $.ajaxSetup() method >> handles the errors and redirects expired session. I knew there was a way to >> do this outside of my ajax requests but wasn't sure if I needed to create a >> proxy method or otherwise. Also, I noticed that you are expecting a string >> "SessionTimeout" which is exactly what I am doing, just not in the same >> place (hence asking for some advice since I am duplicating this all over the >> place). So this leaves me with another thought about passing the error back >> to the client. If a ColdFusion error occurs, I would really like to have a >> structure to work with but how would you identify that it indeed is a server >> error? I would want an indicator and a structure at the same time....or >> maybe you can advise this as well? >> >> Thanks for that snippet. >> >> >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336905 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm