That depends on how you handle your session management. If you're using session variables, I do not think there's much you can do in the way of detecting when they expire (I could be wrong, I don't use Session vars for several reasons).
I use cookies for my session handling. A combination of three session cookies, one that stores their member id, another for a session hash (security), and another with the date/time a page was displayed (encrypted if you like). On each page load requiring the user to be logged in, I check the timestamp against the current time, and if X minutes have passed, it resets the other cookies and sends them back to the login page with a "session expired" message. The timestamp cookie can also be used in conjunction with session variables to achieve the same results as long as your users have cookies enabled. -Justin Scott, Lead Developer Sceiron Internet Services, Inc. http://www.sceiron.com ----- Original Message ----- From: "Ben Densmore" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, April 11, 2002 2:39 PM Subject: how to tell if a session has expired > Can someone tell me how you can tell if a session has timed out? I just > want to redirect someone to a different page if their session has timed > out,I can't find any reference to this anywhere, I know it's gonna be > something so simple, but can't seem to find it. > > Thanks, > Ben > > > ______________________________________________________________________ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm 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

