In the application.cfm:
<!--- Security (show only the login screen if they aren't already logged in) --->
<cflock scope="SESSION" type="exclusive" timeout="10">
<cfparam name="SESSION.loggedIn" default=0>
<cfset REQUEST.loggedIn = SESSION.loggedIn>
</cflock>
<cfif NOT REQUEST.loggedIn AND NOT FindNoCase("login.cfm", CGI.script_name))>
<cflocation url="login.cfm">
<cfabort>
</cfif>
On the login page, you'd set the session variable "loggedIn" to equal 1. This catches
people who've timed out as well as people who've not logged in yet.
Sharon DiOrio
----- Original Message -----
From: "Mario Martinez" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, May 16, 2002 11:49 AM
Subject: How to detect timeout session??
> Hi friends:
> I need to find an easy way to detect timeout session to redirect the user to
> a login page in case he has spent too much time without actvity.
> Any easy way to detect that at the beginning of one template???
>
> regards and thanks in advance
> Mario
>
>
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.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