<BLOCKQUOTE><font size="1" face="Arial, Verdana, Helvetica, sans-serif">quote:</font><HR>Originally posted by dimach:
<STRONG>и вообще мне почему-то кажется, надо строку про sessionmanagement на каждой странице иметь - пёсь его знаеть, етот application.cfm [img:e997f37cac]images/smiles/icon_smile.gif[/img:e997f37cac]</STRONG><HR></BLOCKQUOTE>
Его не песь, его документация знает [img:e997f37cac]images/smiles/icon_smile.gif[/img:e997f37cac]
<BLOCKQUOTE><font size="1" face="Arial, Verdana, Helvetica, sans-serif">quote:</font><HR>An important step in designing a ColdFusion application is mapping out its directory structure.
Before you start building the application, establish a root directory for the application. Application pages may be stored in subdirectories of the root directory.
When any ColdFusion application page is requested, ColdFusion searches up the page's directory tree for an Application.cfm file. When it is found, the Application.cfm code is logically included at the beginning of that page.
If it is not found, ColdFusion searches up the directory tree until it finds an Application.cfm file. If more than one Application.cfm file lives in the current directory tree, ColdFusion uses the first one it finds.
Just as the Application.cfm file is executed before each application page it governs, you can specify a file named OnRequestEnd.cfm, which is executed after each application page in the same application.
ColdFusion Server looks for the OnRequestEnd.cfm file in the same directory as the Application.cfm file of the current application page. The OnRequestEnd.cfm file will never be executed if it resides in another directory.
The OnRequestEnd.cfm file will not be executed if there is an error or an exception in the called page, or if the called page executes the CFABORT or CFEXIT tag.
Just as the Application.cfm file must be spelled with a capital A, you must spell the OnRequestEnd.cfm file with capital O, R, and E.
<HR></BLOCKQUOTE>
Next ColdFusion question
-
- Уже с Приветом
- Posts: 2278
- Joined: 02 Jan 2001 10:01
- Location: MSK; NJ; MA; UAE, Chicago
-
- Уже с Приветом
- Posts: 145
- Joined: 23 Jun 2000 09:01
- Location: Kyiv, Ukraine
Next ColdFusion question
Дык для этого UserID нужно в куках держать. Они, если не устанавливать expires при закрытии окна не актуальны. Это даже в ASP не рекомендуют сессионные переменные плодить (из-за прибабаханного memory management'a), а в ColdFusion ввобще введи себе за правило сессиоными переменными не пользоваться. Ты только представь. Делаешь ты коммерческий сайт. И все переменные регистрации хранятся в сессии. Мерчант прошел этап оплаты, и тут его кто-то отвлек аккурат на 20 мин. Он пытается регистриться дальше, а сессия-то тю-тю. И что? Деньги уплочены, юзернаме занято, в итоге сине око та поганый настрий [img:2cec996bb6]images/smiles/icon_smile.gif[/img:2cec996bb6]