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
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Reply via email to