Using StructClear(session) clears out the entire session scope, including sessionID, 
CFID & CFTOKEN - if this is what you want, great.

It's important to use StructClear(session.structName) if you want to clear only a 
single structure in the session scope.

Chris Norloff

---------- Original Message ----------------------------------
from: Tage Widsell <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
date: Tue, 13 Nov 2001 11:03:05 +0100

>Hi,
>
>Recently someone said that StructClear(session) was a bad way to remove
>session variables. Why? If I effectively want to remove an entire session
>(this is ti be used in a logout template), wouldn't StructClear(Session) be
>the way to do it?
>
>Regards
>Tage Widsell
>Webmaster
>Propellerhead Software
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to