> I was wondering, what is the best way to catch session time-out 
> error messages from showing up? I have an app with a 2 hour 
> session time out - it's not secured in any way, it's just an 
> ordering process where users have to fill out a couple of quite 
> large forms. If the user is idle for longer than the timeout 
> period, I would like them to get a "you have timed out" message 
> rather than seeing an error message about the session structure 
> not being found. 

You might try using the CFERROR TYPE="EXCEPTION", which allows you to write
a generic exception handler, and deal with problems on a pretty granular
level - less so than using CFTRY and CFCATCH, but more specific than using
the site-wide error handler or CFERROR TYPE="REQUEST". For example, if you
have database exceptions that aren't specific to a single query, you could
handle those exceptions with the generic exception handler.

> I was thinking maybe a try - catch block around the code that 
> copies the session structure to the local scope (first thing that 
> occurs on each request)? 

Yikes! Just a warning, but I've seen big performance problems with the
approach of copying persistent variables into and out of local scopes
wholesale. You might be better off simply using CFLOCK within your code as
appropriate.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
______________________________________________________________________
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to