The code will keep session variables going as long as the browser stays
open. It will overwrite the old cfid/token when a new browser window is
opened, the result is your old session variables are killed and you start
over.

-----Original Message-----
From: Andy Ewings [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 09, 2000 10:02 AM
To: '[EMAIL PROTECTED]'
Subject: RE: CFAPPLICATION - Need some advice


I don't think this will do what we are hoping it will.  It looks to me as if
all it's doing is testing to see if the session is open, if it is it's
reading the values from the cookies and then putting them back in
there.....am I completely off the mark here??

-----Original Message-----
From: Matt Rodosky [mailto:[EMAIL PROTECTED]]
Sent: 09 August 2000 16:27
To: [EMAIL PROTECTED]
Subject: RE: CFAPPLICATION - Need some advice


Put this code in your application.cfm file. It will kill the session
variables when the user closes the browser:

<!--- if the user closes their browser, make sure all sesion variables get
killed --->
<cfif IsDefined("Cookie.CFID") AND IsDefined("Cookie.CFTOKEN")>
  <cfset cfid_local = Cookie.CFID>
  <cfset cftoken_local = Cookie.CFTOKEN>
  <cfcookie name="CFID" value="#cfid_local#">
  <cfcookie name="CFTOKEN" value="#cftoken_local#">
</cfif>

-----Original Message-----
From: Miguel [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 09, 2000 9:08 AM
To: '[EMAIL PROTECTED]'
Subject: RE: CFAPPLICATION - Need some advice


There's none, either in asp nor php4
Javascript is the way

Miguel Gonzalez
www.ibcmass.com
mailto:[EMAIL PROTECTED]


> -----Mensaje original-----
> De: Andy Ewings [mailto:[EMAIL PROTECTED]]
> Enviado el: miércoles 9 de agosto de 2000 14:52
> Para: '[EMAIL PROTECTED]'
> Asunto: RE: CFAPPLICATION - Need some advice
>
>
> Session management is a bit of a nightmare in CF in my
> opinion.  If the user
> closes their browser their session doesn't expire
> automatically.  One only
> way to force it to expire is to use the 'OnUnload' event of
> the browser to
> trigger some Java Script which ends the session.
>
> If anyone else has any other ideas on this I'd love to hear them.
>
>
> -----Original Message-----
> From: Gavin Myers [mailto:[EMAIL PROTECTED]]
> Sent: 09 August 2000 13:41
> To: '[EMAIL PROTECTED]'
> Subject: CFAPPLICATION - Need some advice
>
>
> I've decided to take a look at application.cfm too see what I
> can gather.
> I've never really used it before
>
> Now in the simplest form:
>
> application.cfm
> <html><head></head><body>
>
> <cfapplication name="id" clientmanagement="Yes"
> sessionmanagement="Yes"
> setclientcookies="Yes">
>
> </body></html>
> end application.cfm
>
> The only thing I am using with the application.cfm file is
> #session.sessionid#, and I need to carry that sessionid
> through pages. But,
> I also want to make it so that when a person leaves my site,
> and then goes
> back they don't get the same sessionid, but a brand new one.
> I could set an
> expire date, but I'd rather have it not use the same one over again
> automatically. Any suggestions?
>
> Oh and while were on the subject, I want to set global variables while
> person-x is in the site. Example:
>
> Making a shopping cart that records when a person checks on a
> radio button
> labled purchase. That way when they are 4-99 pages deep they
> can hit buy and
> bring up a list of all of the things they said yes to. So you
> click on yes,
> and it globals the name of the product and the product_id, so I can
> reference it later.
>
> Thanks,
> Gavin
> --------------------------------------------------------------
> --------------
> --
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=list
s/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe'
in
the body.
------------------------------------------------------------------------
------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
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/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=sts&body=sts/cf_talk or send
a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.

----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
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/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=sts&body=sts/cf_talk or send
a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
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.

Reply via email to