Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q3004 How can I delete session variables from my application?

irt.org | Knowledge Base | ColdFusion | Q3004 [ previous next ]

Q3004 How can I delete session variables from my application?

ColdFusion 4.0 includes the new concept of structures. Structures can be used for managing lists of key-value pairs. The Session object is actually a built-in structure, so all of the structure-related functions can be used on it.

Suppose we have the variable SESSION.AccountID. The following code would delete the session variable.

<cfset tempvariable = StructDelete(session,"AccountID")>

To clear the data from all current session variables, you can use the StructClear() function:

<cfset tempvariable = StructClear(session)>

Feedback on 'Q3004 How can I delete session variables from my application?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.