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> </DIV>
<DIV><FONT size=2><FONT face=Arial>I have the following code which seems to work
for reading application & 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 <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 <SPAN class=760345010-15082000>(aliasing
variables at the start of the file) </SPAN><SPAN
class=050563708-23082000>okay to use</SPAN>, or will I need to re-code
everything to avoid problems. <SPAN class=050563708-23082000>It seems to
work so far...</SPAN></FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><CFLOCK SCOPE="Session" TIMEOUT="5"
TYPE="ReadOnly"><BR> <CFSET SessionUserID =
Session.UserID><BR></CFLOCK></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><CFLOCK SCOPE="Application" TIMEOUT="5"
TYPE="ReadOnly"><BR> <CFSET ApplicationScreenLoginURL =
Application.LoginScreenURL><BR> <CFSET
ApplicationBackgroundColour =
Application.BackgroundColour><BR></CFLOCK></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><BODY
BGCOLOR="#ApplicationBackgroundColour#"></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><!-- <SPAN class=760345010-15082000>more
</SPAN>code here!! --></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><CFOUTPUT></FONT></DIV>
<DIV><FONT face=Arial size=2><A
HREF="#ApplicationLoginScreenURL#?UserID=#SessionUserID#">Login</A></FONT></DIV>
<DIV><FONT face=Arial size=2></CFOUTPUT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><!-- more code here!! --></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><CFLOCK SCOPE="Session" TIMEOUT="5"
TYPE="ReadOnly"><BR> <CFSET Session<SPAN
class=050563708-23082000>PageCount</SPAN> = Session<SPAN
class=050563708-23082000>PageCount +
1</SPAN>><BR></CFLOCK></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2><!-- more code here!!
--></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><BR></BODY></FONT></DIV>
<DIV> </DIV>
<DIV> </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 & 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.