Question
what is wrong here?
<cfapplication name="App Name" clientmanagement="yes"
setclientcookies="yes"
sessionTimeout="#CreateTimeSpan(0,0,60,0)#">
<cfquery name="user_q" datasource="#dsn#" username="#user#" password="#pass#">
select user_name,user_role
from tbl_user
where user_id = '#form.user_id#'
</cfquery>
<cfset client.user_name="#user_q.user_name#">
<cfset client.user_role="#user_q.user_role#">
1. How to increase timeout for client varibles?.
2. Is it risky to keep client variable storage default (that is in registry)?.
3. is it better to keep application.cfc rather than application.cfm?.
4. what other thing to improve code and performance?.
<cfquery name="user_q" datasource="#dsn#" username="#user#" password="#pass#">
select user_name,user_role
from tbl_user
where user_id = '#form.user_id#'
</cfquery>
<cfset client.user_name="#user_q.user_name#">
<cfset client.user_role="#user_q.user_role#">
1. How to increase timeout for client varibles?.
2. Is it risky to keep client variable storage default (that is in registry)?.
3. is it better to keep application.cfc rather than application.cfm?.
4. what other thing to improve code and performance?.