0 Replies - 1405 Views - Last Post: 19 July 2005 - 10:43 AM

#1 skyhawk133   User is offline

  • Head DIC Head
  • member icon

Reputation: 1963
  • View blog
  • Posts: 20,421
  • Joined: 17-March 01

Per-Session Cookies

Posted 19 July 2005 - 10:43 AM

Description: Place in application.cfmThis code should be placed in the application.cfm and will cause a session and the cookies associated with it to expire when the browser is closed.
<cfapplication     
     sessionmanagement="Yes"
     name="MyApplication"
     setclientcookies="No"
     sessiontimeout=#CreateTimeSpan(0, 0, 1440, 0)#>

<!--- This is what causes the session to expire when the browser closes --->
<cfset cookie.CFID = SESSION.cfid>
<cfset cookie.cftoken = SESSION.cftoken>



Is This A Good Question/Topic? 0
  • +

Page 1 of 1