|Overview: ||Often, people set the cfid/cftoken cookes so they will expire when the browser closes. This code is more elegant, since it does not mess with the cfid/cftoken cookies set by CF server. Note that the session is not killed until the next time the user comes to the web site, but this does not changes the way the web site behaves from the user's perspective. |
This code would go in your application.cfm, or other global location.
This method requires the CF_LOCATION custom tag.