Ever needed to delete SESSION variables, even all SESSION variables? Even though there is no delete function (as there is for CLIENT variables), you can still do this. SESSION is a structure, and all standard structure functions can be used to manipulate a user’s SESSION scope. StructDelete() can be used to delete specific SESSION variables (just specify “SESSION” as the structure name), and StructClear() can be used to delete all SESSION variables. (Applies to: ColdFusion 4 (or later))

Leave a Reply