This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C00CDC.FCCC6770
Content-Type: text/plain;
        charset="iso-8859-1"

Hi All,
 
I have the following code which seems to work for reading application &
session variables but I've just changed the server (which is running CF
4.51) from 'Automatic read locking' to 'Full checking'. Is this method
(aliasing variables at the start of the file) okay to use, or will I need to
re-code everything to avoid problems. It seems to work so far...
 
<CFLOCK SCOPE="Session" TIMEOUT="5" TYPE="ReadOnly">
 <CFSET SessionUserID = Session.UserID>
</CFLOCK>
 
<CFLOCK SCOPE="Application" TIMEOUT="5" TYPE="ReadOnly">
 <CFSET ApplicationScreenLoginURL = Application.LoginScreenURL>
 <CFSET ApplicationBackgroundColour = Application.BackgroundColour>
</CFLOCK>
 
<BODY BGCOLOR="#ApplicationBackgroundColour#">
 
<!-- more code here!! -->
 
<CFOUTPUT>
<A HREF="#ApplicationLoginScreenURL#?UserID=#SessionUserID#">Login</A>
</CFOUTPUT>
 
<!-- more code here!! -->
 
<CFLOCK SCOPE="Session" TIMEOUT="5" TYPE="ReadOnly">
 <CFSET SessionPageCount = SessionPageCount + 1>
</CFLOCK>
 
<!-- more code here!! -->

</BODY>
 
 
Any help will be really appreciated.


Martin L. Gill, MSc
Head Programmer

For & on Behalf of UniTech
(The Universal Information Technology Group Ltd)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
URL: http://www.unitech.net <http://www.unitech.net/> 
Email: martin <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]


------_=_NextPart_001_01C00CDC.FCCC6770
Content-Type: text/html;
        charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 5.00.2722.2800" name=GENERATOR></HEAD>
<BODY>
<DIV>
<DIV><FONT face=Arial size=2>Hi All,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2><FONT face=Arial>I have the following code which seems to work 
for reading application &amp; session variables<SPAN class=760345010-15082000> 
b</SPAN><SPAN class=760345010-15082000>ut </SPAN>I'<SPAN 
class=050563708-23082000>ve</SPAN> just change<SPAN 
class=050563708-23082000>d</SPAN> the server&nbsp;<SPAN 
class=760345010-15082000>(which is running </SPAN>CF 4.51<SPAN 
class=760345010-15082000>)</SPAN> from 'Automatic read locking' to 'Full 
checking'. Is this method&nbsp;<SPAN class=760345010-15082000>(aliasing 
variables at the start of the file)&nbsp;</SPAN><SPAN 
class=050563708-23082000>okay to use</SPAN>, or will I need to re-code 
everything to avoid problems.&nbsp;<SPAN class=050563708-23082000>It seems to 
work so far...</SPAN></FONT></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&lt;CFLOCK SCOPE="Session" TIMEOUT="5" 
TYPE="ReadOnly"&gt;<BR>&nbsp;&lt;CFSET SessionUserID&nbsp;= 
Session.UserID&gt;<BR>&lt;/CFLOCK&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&lt;CFLOCK SCOPE="Application" TIMEOUT="5" 
TYPE="ReadOnly"&gt;<BR>&nbsp;&lt;CFSET ApplicationScreenLoginURL&nbsp;= 
Application.LoginScreenURL&gt;<BR>&nbsp;&lt;CFSET 
ApplicationBackgroundColour&nbsp;= 
Application.BackgroundColour&gt;<BR>&lt;/CFLOCK&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&lt;BODY 
BGCOLOR="#ApplicationBackgroundColour#"&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&lt;!--&nbsp;<SPAN class=760345010-15082000>more 
</SPAN>code here!! --&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&lt;CFOUTPUT&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>&lt;A 
HREF="#ApplicationLoginScreenURL#?UserID=#SessionUserID#"&gt;Login&lt;/A&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>&lt;/CFOUTPUT&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&lt;!-- more code here!! --&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&lt;CFLOCK SCOPE="Session" TIMEOUT="5" 
TYPE="ReadOnly"&gt;<BR>&nbsp;&lt;CFSET Session<SPAN 
class=050563708-23082000>PageCount</SPAN>&nbsp;= Session<SPAN 
class=050563708-23082000>PageCount + 
1</SPAN>&gt;<BR>&lt;/CFLOCK&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2>&lt;!-- more code here!! 
--&gt;</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><BR>&lt;/BODY&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=760345010-15082000>Any help will be 
really appreciated.</SPAN></FONT></DIV>
<DIV><BR>
<P><FONT size=2><FONT face=Arial>Martin L. Gill, MSc<BR>Head 
Programmer<BR><BR>For &amp; on Behalf of UniTech<BR>(The Universal Information 
Technology Group 
Ltd)<BR>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR>URL: <A 
href="http://www.unitech.net/" 
target=_blank>http://www.unitech.net</A><BR>Email: <A 
href="mailto:[EMAIL PROTECTED]">martin<SPAN 
class=050563708-23082000>.gill</SPAN>@unitech.net</A></FONT></FONT></P></DIV></DIV></BODY></HTML>

------_=_NextPart_001_01C00CDC.FCCC6770--
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to