<cflock scope="SESSION" type="exclusive" timeout="10">
<cfparam name="SESSION.isLoggedIn" default="0">
<cfset REQUEST.isLoggedIn = SESSION.isLoggedIn>
</cflock>
<cfif NOT REQUEST.isLoggedIn AND CGI.scriptname NEQ "/login.cfm">
<cflocation url="login.cfm">
</cfif>
(Don't forget to check which page their on...otherwise you can setup a nasty loop.)
Sharon
----- 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