latest reactions

David Levin
Does the trim still work if the form fie …
mal
as long as the join keys are same in eac …
Tarida
I am using ipinfodb.com to redirect the…
David Levin
Good stuff. For those interested in a UD …
PtcBux
oh Wilbur Gans wrote thank you so much…

Clicky Web Analytics
Use OpenDNS
ZERIGO DNS

Ultimate dns hosting based on pre-defined templates, DNS redirection and lot's more.

mxna feeds

CF Webtools is Hiring Full Time Remote DevelopersConnecting to JNDI data sources in ColdFusion 10Video : Security improvements in ColdFusion 10Adobe ColdFusion Webcast: Evolutions of ColdFusion and Application Predictions for 2013Resolve Stability Problems and SPEED UP ColdFusion 10Strange Interaction Between DeserializeJson(), ArrayContains(), And Database Values In ColdFusionNot able to apply Hotfix from ColdFusion 10 Administrator on Windows with Lockdown guide imposed on server. How to setInfinite Scroll Example with ColdFusionColdFusion Summit 2013ColdFusion Dev Needed: Albany, NYCF911: New Adobe document about #ColdFusion security hotfixes: required reading, I'd sayColdFusion Summit AnnouncedAdobe Announces ColdFusion Summit 2013Circular Thumbnails with ColdFusion / CSSColdFusion Dev needed: South Florida

All files are strictly confidential: all information is classified.
© Copyright 2002 - 2013 mximize.com.
All right reserved.

Visit Carlos GallupaMXNA webfeed

How do you delete a single session variable?

Session variables are stored in a structure, so you can use StructDelete

<cfset variables.Result = StructDelete(session, "YourSessionVarName")>

11549 viewed | 3 opinion(s)  | del.icio.us | Digg it | Tjarko @ 17/11/02 14:50 cet


Reactions:

Sean wrote.... (site)

What about if it isn't in a session, but say like a query yo you want to delete.

09 May 2008 23:38 cet  

great info... wrote.... (site)

If you had to delete two session variables, is it safe to use the same variables name? for example:
<cfset variables.Result = StructDelete(session, "AAYourSessionVarName")>

<cfset variables.Result = StructDelete(session, "BBYourSessionVarName")>

24 February 2012 17:30 cet  

Tjarko wrote.... (site)

Yes that's save to do. The variable isn't really used.

27 February 2012 8:42 cet  

Leave your comment

Your name


Your url/website/link/email....


Some room for your reaction is placed here..



The answer to the ultimate question is?? (42 ;-))




URL en mail addresses are translated for you... life sometimes is that simple!!