Hi,

I usually store the timestamp of the last activity in cookies instead of
session vars. Then I have two application vars, application.master_timeout
and application.user_timeout which hold the timeout values in minutes. So
all I have to do is something like

<cfif DatDiff("n", cookie.master_logon, now()) GTE
application.master_timeout>
        Session expired
</cfif>

Actually I just use cookies to avoid having to lock the session scope AND
the application scope. ;-))

HTH,

Chris


> -----Urspr�ngliche Nachricht-----
> Von: Aidan Whitehall [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 30. Januar 2001 20:21
> An: CF-Talk
> Betreff: RE: session
>
>
> > If i have sesion.master_logon and  session.user_logon
> > and Can i set timeout for session.master_logon as 10 minute  but
> > session.user_logon only 30 minute ?
>
> Not AFAIK.
>
> Setting SESSIONTIMEOUT within the CFAPPLICATION tag would be a
> global value
> for all session variables.
>
>
>
> --
> Aidan Whitehall <[EMAIL PROTECTED]>
> Netshopper UK Ltd
> Advanced Web Solutions & Services
>
> http://www.netshopperuk.com/
> Telephone +44 (01744) 648650
> Fax +44 (01744) 648651
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to