I had the same problem myself, and found the solution at
http://www.teamallaire.com/tutorials/index.cfm?fuseaction=display&topicid=00
4.  Lots of other good tutorials, as well.

the code follows:

        <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>

If you put this snippet of code in your Application.cfm file, sessions
should expire when the user closes the browser.

-elizabeth

-----Original Message-----
From: S R [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 27, 2000 12:53 PM
To: CF-Talk
Subject: session variable expiring


Hi,

I would like to clarify something. I have read that session variables are
supposed to expire after a user's session is over. I would like my session
variables to expire every time the user closes the their browser. Would this
qualify as a user 'ending their session'? If so, how do I specify this when
I set my session variables or are session variables automatically set to do
this on their own? I tested it out by closing my browser and opening up my
website again and it did not seem to work, it let me right in without asking
me to login again.

Thanks

Sal
____________________________________________________________________________
_________
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to