1. Why is the <cfcookie> set in CFMX invalid when it is transplanted into cf5?
Answer: <cfcookie> and <cflocation> cannot be placed directly on the same page in CF5.0. Check your page code to see if these two tags share the same page. This problem will not occur in cfmx. However, once applied to CF5, the cookie is invalid.
2. Will using a proxy server in the browser cause problems with local debugging of CFMX applications?
Answer: There will definitely be problems. When using the path of http://localhost:8500/xxx for cfmx application testing, click "Toos->Internet Options...->Connections->Lan Settings..." in the browser to confirm that proxy Server is not used. If you use it, many database applications will experience Tcp/IP errors during the debugging process. In fact, your application has no errors, but the proxy server option is causing trouble.
Are there different settings for cookies in it? If so, is it necessary to use different setup methods in the same Project?
Answer: Cookies in ColdFusion are set in different ways. The default method is temporarily stored, that is, close the browser, and the cookies disappear. We can set this cookie using <cfset="xxx"> or use <cfparam> to set it. Setting such cookies can be used to determine the time a user stays in a single access in an application, items in the shopping cart, and other temporary variables. When we need to set a long-term cookie, please use <cfcookie> to set it, because the Expires attribute will retain the value of the cookie for a long time.
4. Can multiple servers with different IP mappings recognize the same cookie?
Answer: Yes. However, you should start with the type, use a 2-level domain name, and then use the path attribute to control it when setting cookies in CF, such as <cfCookie Name="xxx" Value="xxx" Domain=".">.
5. Why does the virtual mapping I set in cf administrator not work? Does this have anything to do with the operating system?
Answer: In Windows operating systems, special attention should be paid to the mapping configuration of physical paths corresponding to virtual paths. cfmx updater3 fixed the issue of adding a virtual map to the cfmx administrator ineffective. In addition, if there are still problems with the configuration of individual servers, please manually modify the file under the cf_root\wwwroot\WEB-INF folder. For example, add a virtual images folder mapped to physical D disk, the configuration method is as follows:
<virtual-mapping>
< resource-path>/images/*</resource-path>
<system-path>D:\images</system-path>
< /virtual-mapping>
After modification, restart the CFMX service. The above problems will not occur on Unix and Linux operating systems.
6. How to judge the ColdFusionMX service is running normally on Unix system?
Answer: It is of course convenient to enter the graphical Unix management interface. But there is a more convenient Command for web administrators to use. Type: ps-eaf| grep cfusion in the command line mode. In fact, the above command is to check the status of the cfusion process in the current system. If the service runs, it will wait for information similar to the following:
nobody 4528 1 10 12:44 pts/0 00:00:07 /opt/coldfusionmx/runtime/bin/cfusion -start
If the above information is not obtained, it proves that there is a problem with the service process.
7. How to manage coldfusionMX services on Unix systems (is it as simple as Windows?)?
A: Managing CFMX on Unix may be easier than Windows. First enter Unix with root permissions, and then type: cd cf_root/bin. After that, you can enter different commands to manage the CFMX process:
Start the CFMX service and enter: coldfusion start
Stop CFMX service and enter: coldfusion stop
Restart the CFMX service, enter: coldfusion restart
Check the performance of CFMX service, enter: coldfusion status
Answer: <cfcookie> and <cflocation> cannot be placed directly on the same page in CF5.0. Check your page code to see if these two tags share the same page. This problem will not occur in cfmx. However, once applied to CF5, the cookie is invalid.
2. Will using a proxy server in the browser cause problems with local debugging of CFMX applications?
Answer: There will definitely be problems. When using the path of http://localhost:8500/xxx for cfmx application testing, click "Toos->Internet Options...->Connections->Lan Settings..." in the browser to confirm that proxy Server is not used. If you use it, many database applications will experience Tcp/IP errors during the debugging process. In fact, your application has no errors, but the proxy server option is causing trouble.
Are there different settings for cookies in it? If so, is it necessary to use different setup methods in the same Project?
Answer: Cookies in ColdFusion are set in different ways. The default method is temporarily stored, that is, close the browser, and the cookies disappear. We can set this cookie using <cfset="xxx"> or use <cfparam> to set it. Setting such cookies can be used to determine the time a user stays in a single access in an application, items in the shopping cart, and other temporary variables. When we need to set a long-term cookie, please use <cfcookie> to set it, because the Expires attribute will retain the value of the cookie for a long time.
4. Can multiple servers with different IP mappings recognize the same cookie?
Answer: Yes. However, you should start with the type, use a 2-level domain name, and then use the path attribute to control it when setting cookies in CF, such as <cfCookie Name="xxx" Value="xxx" Domain=".">.
5. Why does the virtual mapping I set in cf administrator not work? Does this have anything to do with the operating system?
Answer: In Windows operating systems, special attention should be paid to the mapping configuration of physical paths corresponding to virtual paths. cfmx updater3 fixed the issue of adding a virtual map to the cfmx administrator ineffective. In addition, if there are still problems with the configuration of individual servers, please manually modify the file under the cf_root\wwwroot\WEB-INF folder. For example, add a virtual images folder mapped to physical D disk, the configuration method is as follows:
<virtual-mapping>
< resource-path>/images/*</resource-path>
<system-path>D:\images</system-path>
< /virtual-mapping>
After modification, restart the CFMX service. The above problems will not occur on Unix and Linux operating systems.
6. How to judge the ColdFusionMX service is running normally on Unix system?
Answer: It is of course convenient to enter the graphical Unix management interface. But there is a more convenient Command for web administrators to use. Type: ps-eaf| grep cfusion in the command line mode. In fact, the above command is to check the status of the cfusion process in the current system. If the service runs, it will wait for information similar to the following:
nobody 4528 1 10 12:44 pts/0 00:00:07 /opt/coldfusionmx/runtime/bin/cfusion -start
If the above information is not obtained, it proves that there is a problem with the service process.
7. How to manage coldfusionMX services on Unix systems (is it as simple as Windows?)?
A: Managing CFMX on Unix may be easier than Windows. First enter Unix with root permissions, and then type: cd cf_root/bin. After that, you can enter different commands to manage the CFMX process:
Start the CFMX service and enter: coldfusion start
Stop CFMX service and enter: coldfusion stop
Restart the CFMX service, enter: coldfusion restart
Check the performance of CFMX service, enter: coldfusion status