Clearing your session variables!

A question I get quite often is:
What is the best way to "kill" all sessions in my ColdFusion application?

Well, my answer always is.... It just takes 3 lines of code (Don't you just love ColdFusion? ;)

<cfscript>
   StructClear(Session);
</cfscript>

The command above will instruct ColdFusion to "kill" all sessions for the current client.

Questions? Comments? Email me...

All ColdFusion Tutorials By Author: Pablo Varando
Download the EasyCFM.COM Browser Toolbar!