Scott,
Here is the method that I use.  Hope it helps some.

<cfset sessionvars = "">
<cfloop collection="#session#" item=key>
    <cfset sessionvars = listappend(sessionvars, key)>
</cfloop>
<cfloop list="sessionvars" index="deletekey" delimiters=",">
        <cfset StructDelete(session,"#deletekey#")>
</cfloop>


> How can
> I remove a session variable completely?  I know I
> can change
> the value using CFSET (i.e. <CFSET
> Session.LoggedIn = "1">)
> but I don't know how to remove it altogether.

<cf_warrior name="Bill">

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