Ask a Question related to Macromedia ColdFusion, Design and Development.
-
theDude28 #1
CFlock
Hi guys I have been reading up on the CFlock tag and I was just wondering is it really important that i include it in my CF application for the session variables?
Thanks.
theDude28 Guest
-
cflock timeout
The timeout property sets the amount of time a session variable will be active. Note that while you can make it shorter than the default timeout set... -
CFLOCK Error
I am getteing this error message when trying to get to the login page. Error Occurred While Processing Request Error Diagnostic Information Just... -
<cflock> help
AFAIK, cflock is used for protecting data in persistant scopes (i.e. session, application, client, server, etc...). Updates, deletes, inserts to... -
CFLOCK ?? Where and Why I must use it?
The user inserts info to the database through 5 steps. By each step he gets info from the database and changes it and insert in back to the... -
Baffled by CFLOCK
I have a question about using CFLOCK. I am a self-taught programmer running CF 4.5 (and, I should say, helped a lot by the kind people on this... -
jdeline #2
Re: CFlock
Yes, it is. If your application is large (lots of pages), consider duplicating
your session variables as locally scoped variables in Application.cfm and using
the local variables in your application. You must have a OnRequestEnd.cfm page
that is automatically executed when each page is run. OnRequestEnd.cfm copies
the locally scoped variables back to the session variables. And don't forget
to do this prior to any CFLOCATON tag. See code below.
<!--- In Application.cfm, duplicate session variables to local Request.Ses
variables --->
<cflock scope="Session" timeout="10" type="readonly">
<cfset Request.Ses = Duplicate(Session)>
</cflock>
<!--- OnRequestEnd.cfm contains the following. This code must also preceed
any CFLOCATION tag --->
<cflock scope="Session" timeout="10" type="exclusive">
<CFLOOP COLLECTION="#request.ses#" ITEM="i">
<cfset Session[i] = request.ses[i]>
</cfloop>
jdeline Guest
-
theDude28 #3
Re: CFlock
Thanks for your reply my application doesn't have many pages and i don't even have an OnRequestEnd.cfm could this cause many problems if not changed?
theDude28 Guest



Reply With Quote

