Question
are application variables 'user specific'?
hi - i've got a feeling i may have done something stupid.
we have several domains all pointing to one application.
in application we look at the cgi.http_host to work out which site the domain the user is expecting and then serve up customised content accordingly.
only this is i've set put the customised content in application scoped vars - is that a bad move?
eg. in application.cfm i have:
<cfif cgi.http_host eq 'www.redredred.com' >
<cfset application.message= "welcome - we love the colour red" >
<cfelseif cgi.http_host eq 'www.blueblueblue.com' >
<cfset application.message= "welcome - to our site where we love blue" >
<cfelse>
<cfset application.message= "welcome to our site (we love all colours)" >
</cfif>
then in the index.cfm:
<cfoutput>#application.message#</cfouput>
is there a chance that by doing this someone who has visited www.redredred.com will get a message about blue?
we have several domains all pointing to one application.
in application we look at the cgi.http_host to work out which site the domain the user is expecting and then serve up customised content accordingly.
only this is i've set put the customised content in application scoped vars - is that a bad move?
eg. in application.cfm i have:
<cfif cgi.http_host eq 'www.redredred.com' >
<cfset application.message= "welcome - we love the colour red" >
<cfelseif cgi.http_host eq 'www.blueblueblue.com' >
<cfset application.message= "welcome - to our site where we love blue" >
<cfelse>
<cfset application.message= "welcome to our site (we love all colours)" >
</cfif>
then in the index.cfm:
<cfoutput>#application.message#</cfouput>
is there a chance that by doing this someone who has visited www.redredred.com will get a message about blue?
