macromedia.coldfusion.cfml_general_discussion
[Top] [All Lists]

Re: (beginner) Coldfusion: variable to change language

Subject: Re: (beginner) Coldfusion: variable to change language
From: "Magikaru" <webforumsuser@xxxxxxxxxxxxxx>
Date: Thu, 31 Jul 2008 15:57:10 +0000 (UTC)
Newsgroups: macromedia.coldfusion.cfml_general_discussion

You can't directly access application.cfm and change permanently one of the 
variables. When another page is loaded, it will reload the old application.cfm. 
And don't try to write some code that will modify the actual file; that will 
cause all sorts of security issues.

 I think the best thing to do is to take Dan Bracuk's advice and create session 
variables. Have every page default the language variable to "English" if it 
does not exist or is an unknown value. Then, when you click on a link that is 
supposed to change the language, just change this variable. It will stay the 
same until the user changes it again or the session times out.


<Prev in Thread] Current Thread [Next in Thread>