As Seth pointed out you may use StructDelete() and/or StructClear(), but
a little explanation might be helpful.

When you need to delete individual session variable, the obvious choice
is StructDelete(). When you need to initialize the entire session, it is
necessary to set a few variables aside prior to using StructClear(). It
is necessary to set aside CFID, CFTOKEN, SESSIONID, and URLTOKEN so that
they may be reinserted after the structure is cleared. If this step is
not taken you may potentially run into trouble with cookies or client
variables.

<code>

<cflock ...
<cfscript>
tmp = StructNew();
tmp.cftoken = session.cftoken;
tmp.cfid = session.cfid;
tmp.urltoken = session.urltoken;
tmp.sessionid = session.sessionid;
StructClear(session);
StructAppend(session, tmp); //appends tmp to session
</cfscript>
</cflock>

</code>
-- 
Josh Meekhof
Sr. Software Engineer
Techniki Informatica / Network Staffing Services Inc.
(972) 233 1525

-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to