Skip to content

Instantly share code, notes, and snippets.

@stevewithington
Created September 5, 2013 18:14
Show Gist options
  • Save stevewithington/6453931 to your computer and use it in GitHub Desktop.
Save stevewithington/6453931 to your computer and use it in GitHub Desktop.
Mura CMS : How to alter sessiontimeout based on domain
<cfscript>
// Mura CMS : How to alter sessiontimeout based on domain
// drop this in /config/cfapplication.cfm
host = getPageContext().getRequest().getHeader('Host');
switch(host) {
case 'www.intranet.com' :
this.sessiontimeout = CreateTimeSpan(7,0,0,0);
break;
case 'www.not-intranet.com' :
this.sessiontimeout = createTimeSpan(0,0,20,0);
break;
default :
this.sessiontimeout = createTimeSpan(0,0,5,0);
}
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment