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? ;)


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

Questions? Comments? Email me...

About This Tutorial
Author: Pablo Varando
Skill Level: Intermediate 
Platforms Tested: CF5,CFMX,CF8,CF9,BlueDragon,Railo
Total Views: 167,836
Submission Date: October 04, 2002
Last Update Date: August 25, 2011
All Tutorials By This Autor: 47
Discuss This Tutorial
  • This little piece of codes was all I needed!!! It worked perfectly. I looked in the book and didn't see anything this simple! Thanks guys!!!

  • I agree with Mark

  • Why not use StructDelete? It is a bit longer but it will delete session. Any good reason not to do that ?


Website Designed and Developed by Pablo Varando.