In app.cfm or a global include, I do:
<cfparam name="session.myappname.loggedin" default="false">
Then, anwhere I need to check it, just do:
<cfif session.myappname.loggedin>
Stephen Adams wrote:
Hi,
I was trying to find a good partice for checking if my session
variables has timeout and if so redirect the user to the login page.
Currently I'm using:
<cfif IsDefined('session.username') AND session.username EQ ''>
<cflocation url="index.cfm?task=sessionTimeout">
</cfif>
What other, ways are there that people use?
Thanks
Stephen
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject
of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]
------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.2/356 - Release Date: 05/06/2006
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject of the
email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]