| 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> |
|---|---|---|
| ||
| Previous by Date: | Re: Performance Monitor Will Not Work, ksmith |
|---|---|
| Next by Date: | Re: Novice need helps with variable defaults, fishidaho |
| Previous by Thread: | Re: (beginner) Coldfusion: variable to change language, Ian Skinner |
| Next by Thread: | CFMAIL and Editing Fields, ethomas17 |
| Indexes: | [Date] [Thread] [Top] [All Lists] |