Skip to content

Instantly share code, notes, and snippets.

@twelverobots
Created August 20, 2013 20:34
Show Gist options
  • Save twelverobots/6286908 to your computer and use it in GitHub Desktop.
Save twelverobots/6286908 to your computer and use it in GitHub Desktop.
<cfcomponent>
<cfset this.name = "sessionCookies_test" >
<cfset this.sessionManagement=true>
<cfset this.setdomaincookies = true >
<cfset this.sessioncookie.httponly=true> <!--- if cookie to be httponly --->
<cfset this.sessioncookie.timeout = "10" > <!--- session cookie age --->
<cfset this.sessioncookie.secure = "true" > <!--- only https session cookie --->
<cfset this.sessioncookie.domain = ".shilpikhariwal.com" > <!--- domain for which session cookies are valid --->
<cfset this.authcookie.timeout = createTimeSpan(0, 0, 0, 20) > authentication cookie age --->
<cfset this.sessioncookie.disableupdate = true > <!--- if session cookie can be modified by coldfusion tags --->
<cfset this.authcookie.disableupdate = true > <!--- if session cookie can be modified by coldfusion tags --->
</cfcomponent>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment