I just use this (in my index.cfm for the logout fuseaction):

<cfscript>
        StructClear(Session);
</cfscript>

Seems to work well also.

Peter Tilbrook 
Project Officer 
Strategic Development 
Australian Building Codes Board 
GPO Box 9839 
CANBERRA ACT 2600 

Telephone: (02) 6213 6731 
Facsimile: (02) 6213 7287


-----Original Message-----
From: Nate [mailto:npetersn@;xmission.com]
Sent: Tuesday, 22 October 2002 5:09 AM
To: CF-Talk
Subject: Re: Session variables not expiring in CFMX


Exactly what I needed!

----- Original Message -----
From: "Chris Kief" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, October 18, 2002 3:54 PM
Subject: RE: Session variables not expiring in CFMX


> Nate,
>
> You are still able to end your session in this manner. A couple points
> that should be mentioned:
>
> - ColdFusion deletes expired session variables every 10 seconds to save
> processing time. If you cfdump the session structure after CF executes
> your cfapplication tag (say further down on the same page), you may
> still see that your session exists.
>
> - It is also recommended that you reset all other attributes to the
> desired settings in your cfapplication tag:
>
> <cfapplication
> name="App_Name"
> clientmanagement="yes"
> applicationtimeout="#CreateTimeSpan(0, 0, 0, 30)#"
> sessionmanagement="yes"
> sessiontimeout="#CreateTimeSpan(0, 0, 0, 0)#">
>
> If you would like to immediately end your session, I would suggest using
> the following right before the above cfapplication tag:
>
> <cflock name="myAppSessionLogout" type="exclusive" timeout="5" >
> <cfset StructDelete(Session, "cftoken")>
> <cfset StructDelete(Session, "cfid")>
> ...etc
> </cflock>
>
> A bit redundant, but it does the job nicely. I have used this technique
> with much success with both 5 & MX.
>
> HTHs,
> chris kief
>
>
>
> -----Original Message-----
> From: Nate [mailto:npetersn@;xmission.com]
> Sent: Friday, October 18, 2002 12:57 PM
> To: CF-Talk
> Subject: Session variables not expiring in CFMX
>
> I am tring to test an application in CFMX that works fine in CF 5.
> Simply trying to expire session variables by directing the user to a
> page upon logout that contains the following:
>
> <cfapplication name="App_Name" sessionmanagement="Yes"
> sessiontimeout="#CreateTimeSpan(0,0,0,0)#">
>
> This doesen't seem to be expiring the session variables in CFMX, and my
> goal is to have this application compatible with CF 5 and CFMX.
>
> Am I missing something that has changed in CFMX when trying to expire
> session variables in this manner?
>
> Nate
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to