Created
September 5, 2013 18:14
-
-
Save stevewithington/6453931 to your computer and use it in GitHub Desktop.
Mura CMS : How to alter sessiontimeout based on domain
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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