|
主题: CFLOCK的问题??
|
雅痞公子
职务:普通成员
等级:3
金币:-3.0
发贴:732
注册:2003/3/27 23:16:34
|
#12004/3/6 17:53:01
谁能说一下CFLCOK的NAME属性有什么用??
<cflock scope="" timeout="10"> <cfset Session.testSessionVariable=222> <cfset Application.testApplicationVariable=444> </cflock>
请问上面CFLOCK的SCOPE属性该是Session,还是Application???
|
雅痞公子
职务:普通成员
等级:3
金币:-3.0
发贴:732
注册:2003/3/27 23:16:34
|
#22004/3/13 18:59:55
怎么没有人回答!
|
s22
职务:版主
等级:4
金币:10.0
发贴:1634
注册:2004/12/19 13:06:46
|
#32004/3/14 0:16:23
在不指定SCOPE的时候可以给CFLOCK指定一个NAME属性
Lock name. Mutually exclusive with the scope attribute. Only one request can execute the code within a cflock tag with a given name at a time. Cannot be an empty string.
Permits synchronizing access to resources from different parts of an application. Lock names are global to a ColdFusion server. They are shared among applications and user sessions, but not clustered servers.
|
雅痞公子
职务:普通成员
等级:3
金币:-3.0
发贴:732
注册:2003/3/27 23:16:34
|
#42004/3/14 15:43:14
那是否是为所有的CFLOCK的NAME属性值设为“application.applicationName”就行了?
还是NAME还有别的意思?
我搞不懂的就是CFLOCK的NAME属性!
|