I set another variable client.LastVisit2 = client.LastVisit at the end of
application.cfm

then I compare the lastvisit2 with now() at the top of application.cfm  =)


Andy Ewings <[EMAIL PROTECTED]> wrote:
> Ummm...ok.....but if that's the case how can you ever interrogate the
> Client.LastVisit variable and get a value other than the current time?
> 
> -----Original Message-----
> From: JL [mailto:[EMAIL PROTECTED]]
> Sent: 25 August 2000 14:57
> To: [EMAIL PROTECTED]
> Subject: Re: [RE: RE: Session timeout?]
> 
> 
> then do you ever get timeout?
> if you compare the client.lastvisit with now(), it will never GTE 30
because
> client.LastVisit is always updated before you excute this piece of code.
> 
> I use client management too...
> 
> Andy Ewings <[EMAIL PROTECTED]> wrote:
> > Yup...this is what I do in mine......
> > 
> > <!--- Clear client varaible if no activity in past 30 mins --->
> > <cfif DateDiff("n", Client.LastVisit, Now()) GTE 30>
> >             <cfquery Name="DelClientVars" datasource="DSN" MAXROWS=1>
> >                     DELETE FROM CDATA WHERE CFID =
> > '#Cookie.CFID#:#Cookie.CFToken#' AND APP = 'CVBuilder'
> >             </cfquery>
> > </cfif>
> > 
> > OK I am using Clent management and it is being stored in a SQL database
> but
> > you get the idea
> > 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: 24 August 2000 15:27
> > To: [EMAIL PROTECTED]
> > Subject: RE: RE: Session timeout?
> > 
> > 
> > 
> > 
> > Thanks Andy,
> >              I cant do that cause i an dynamically logging the
> > user. 
> > 
> > Is there  a ways you could say.
> > 
> > isDefined(Sessiontimeout)??
> > 
> > or 
> > i have to calculate the time the user spends in the app and log
> > them off!
> >  
> > 
> > --- Original Message ---
> > Andy Ewings <[EMAIL PROTECTED]> Wrote on 
> > Thu, 24 Aug 2000 15:04:50 +0100
> >  ------------------ 
> > Set a param in your application.cfm called Session.Loggedin for
> > example with
> > a default of "no"
> > When a user logs in set this variable to yes.
> > 
> > Then in your application.cfm also have code that says:
> > 
> > <cfif Session.Loggedin IS "No">
> >     <cflocation url="logon.cfm">
> > </cfif>
> > 
> > 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: 24 August 2000 15:01
> > To: [EMAIL PROTECTED]
> > Subject: Session timeout?
> > 
> > 
> > 
> > 
> > Hello all.
> >            Is there a way to find whether the session timed out.If
> > the session timed out display the logon page.
> > 
> > Some like 
> > <cfif Not isDefined(Session)>
> > <cflocation ../logon.cfm>
> > </cfif>
> > 
> > but i cant get this work.
> > 
> > Appretiate any comments.
> > 
> > thanks
> > Joe
> > 
> > 
> > -----
> > Sent using MailStart.com ( http://MailStart.Com/welcome.html
> > )
> > The FREE way to access your mailbox via any web browser, anywhere!
> > 
> >
>
----------------------------------------------------------------------------
> > --
> > Archives: http://www.mail-archive.com/[email protected]/
> > To Unsubscribe visit
> > http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
> > or
> > send a message to [EMAIL PROTECTED] with 'unsubscribe'
> > in
> > the body.
> >
>
----------------------------------------------------------------------------
> > --
> > Archives: http://www.mail-archive.com/[email protected]/
> > To Unsubscribe visit
> > http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
> > or send a message to [EMAIL PROTECTED] with 'unsubscribe'
> > in the body.
> > 
> > 
> > 
> > -----
> > Sent using MailStart.com ( http://MailStart.Com/welcome.html )
> > The FREE way to access your mailbox via any web browser, anywhere!
> > 
> >
>
----------------------------------------------------------------------------
> > --
> > Archives: http://www.mail-archive.com/[email protected]/
> > To Unsubscribe visit
> > http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
or
> > send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> > the body.
> >
>
----------------------------------------------------------------------------
> --
> > Archives: http://www.mail-archive.com/[email protected]/
> > To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the
> body.
> 
> 
> ____________________________________________________________________
> Get free email and a permanent address at http://www.netaddress.com/?N=1
>
----------------------------------------------------------------------------
> --
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
>
------------------------------------------------------------------------------
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.


____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/cf_talk or send a message 
to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to