How NOT to Code - Example 3
Jan 12, 2010
Example 3 is a ColdFusion code issue
<cfapplication name="badcodeexamples"
sessionmanagement="true"
clientmanagement="true"
scriptprotect="true"
applicationtimeout="20"
sessiontimeout="2"/>
John Sieber wrote on 01/13/101:16 AM
The proper values for client and session management are "yes" or "no" instead of true or false. For script protect the values are either all, none or a comma delimited list of the scopes to be protected against cross site scripting. For the application and session timeout values they are to be defined by day, hour, minute, seconds separated by commas. I'm not sure if the values above would set the application scope to expire after 20 days or 20 seconds. Same with the session scope.