I am trying to kill all session variables in a coldfusion application. Is the following code snippet all I need to do so? I understand this is a typical logout script, but what does it actually do? Do I have to specifically target the sessions variables that I want to end (i.e. session.userId, session.userType, etc.), or will this code block just kill everything?
I plan on this code running when a user clicks a logout button.
<cflock scope="Session" timeout="10" type="exclusive"> <cfset structclear(session)> </cflock>
Thanks for any info!