Do an isDefined check on a session var at the top of each page (in Applicat
ion.cfm is easy).  If it's not defined then it's probably because it's time
d out, so then send the user to an alert page.

Chris Norloff

---------- Original Message ----------------------------------
from: "Kay Smoljak" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
date: Thu, 20 Dec 2001 22:09:01 +0800

>Hi all,
>
>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. 
>
>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)? Just wondering if there is any better way to do this. I know
>there's some funky things you can do with javascript popups and stuff
>like that, but I'm not relying on Javascript or cookies anywhere else in
>the site and I'd like to keep it that way if possible.
>
>Thanks,
>Kay.
>
______________________________________________________________________
Get Your Own 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=coldfusionb
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