gregs

Clearing sessions on closing the browser

by gregs on Jul.18, 2005, under Uncategorized

I keep seeing this question pop up so for google's sake here is how you can kill sessions when the user closes his or her browser.

HTML:
  1. <!--- set session coookies --->
  2. <cfif>
  3. <cfcookie name="cfid" value="#cookie.cfid#">
  4. <cfcookie name="cftoken" value="#cookie.cftoken#">
  5. </cfcookie>


Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!