ColdBox Forums Notification: Post to Ending Session on Browser Close

Title: Ending Session on Browser Close
Thread: Ending Session on Browser Close
Forum: Need Help?
Conference: ColdBox
User: tb How do I end a session in ColdBox when a user closes the browser without logging
out?

In non Colbox CF apps I've used a technique like this on the application
page...

<cfif not IsDefined("cookie.cfid")>
  <cflock scope="session"
type="readonly" timeout="5">
  <cfcookie name="cfid" value="#session.cfid#">
<cfcookie name="cftoken" value="#session.cftoken#">
  </cflock>
</cfif>
Does this work in Coldbox and if so where do I put the code?

Any
suggestions would be very appreciated. Thanks!
http://www.luismajano.com/forums/index.cfm?event=ehMessages.dspMessages&threadid=F93CBB92-FF65-CEF6-656FC3FA37CDD32E